A
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;
}
int main()
{
char str[20] = "GeeksQuiz";
printf ("%d", sizeof(str));
return 0;
}
- Correct Answer - Option(C)
- Views: 20
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.