A

Admin • 833K Points
Coach

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
  • Correct Answer - Option(C)
  • Views: 19
  • Filed under category C Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.