Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
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; }
10, 2 2, 2
10, 4 1, 2
11, 4 1, 1
12, 2 2, 2
Correct Answer:
11, 4 1, 1
← Previous Question
Next Question→
More Questions from
Strings
What will be the output of the program? #include
int main() { char str[7] = "CuriousTab"; printf("%s\n", str); return 0; }
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments