Home » C Programming » Strings

If the size of pointer is 32 bits What will be the output of the program? #include int main() { char a[] = "Visual C++"; char *b = "Visual C++"; printf("%d, %d\n", sizeof(a), sizeof(b)); printf("%d, %d", sizeof(*a), sizeof(*b)); return 0; }

Correct Answer: 11, 4 1, 1

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion