Recent questions tagged sizeof-operator

1 votes
1 answer
1
#include <stdio.h int main() { int a = 1; char d[] = "ab"; printf("%d", sizeof(a+d)); return 0; }Explain the Output
1 votes
1 answer
2
1 votes
2 answers
3
#include<stdio.h int main() { char *s="\123456789\n"; printf("%d", sizeof(s)); return 0; }why this piece of code gives output $8$please explain. thanx
1 votes
1 answer
4
#include<stdio.h int main(void) { printf("bytes occupied by '7' = %d\n", sizeof('7')); printf("bytes occupied by 7 = %d\n", sizeof(7)); printf("bytes occupied by 7.0 = %d...
To see more, click for the full list of questions or popular tags.