What would be the output of the following program?
main()
{
char a[] = "Visual C++";
char *b = "Visual C++";
printf ("\n%d %d", sizeof (a), sizeof (b));
printf ("\n%d %d", sizeof (*a), sizeof (*b));
}5
801 5b5cc7dde4d2b419777515da
Q: What would be the output of the following program? main() { char a[] = "Visual C++"; char *b = "Visual C++"; printf ("\n%d %d", sizeof (a), sizeof (b)); printf ("\n%d %d", sizeof (*a), sizeof (*b)); }
- Show Answer
- Workspace
- Discuss