0
What is the output of the following C program?
#include <stdio.h>
int main() {
printf("%d %d %d", (int)sizeof('a'),
(int)sizeof("ab"), (int)sizeof(1.5f));
return 0;
}- A4 3 4
- B1 2 4
- C1 3 8
- D4 2 8
Correct answer: A
What is the output of the following C program?
#include <stdio.h>
int main() {
printf("%d %d %d", (int)sizeof('a'),
(int)sizeof("ab"), (int)sizeof(1.5f));
return 0;
}