Q. Assume that a character takes 1 byte. Output of following program?

Code:
#include<stdio.h>
int main()
{
    char str[20] = "GeeksQuiz";
    printf ("%d", sizeof(str));
    return 0;
}
  • (A) 9
  • (B) 10
  • (C) 20
  • (D) Garbage Value
πŸ’¬ Discuss
βœ… Correct Answer: (C) 20

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
277
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
92%
Success Rate