kaldin

  • Login

C Programming


1) If char=1, int=4, and float=4 bytes size, What will be the output of the program ?

#include<stdio.h>

int main()
{
    char ch = 'A';
    printf("%d, %d, %d", sizeof(ch), sizeof('A'), sizeof(3.14f));
    return 0;
}
  • A)

  • B)

  • C)

  • D)

Next
Show Answer:
Show Answer


More Question
Which of the statements is correct about the program #includestdio.hint main() float a=3.14; char j; j = (char)&a; printf(d\n, j); return 0;
Bit fields CANNOT be used in union.
Point out the error in the following program. #includestdio.h#includestdarg.hvoid varfun(int n, ...);int main() varfun(3, 7, -11.2, 0.66); return 0;void varfun(int n, ...) float ptr; int num; va_start(ptr, n); num = va_arg(ptr, int); printf(d, num);
The first argument to be supplied at command-line must always be count of total arguments.
The keyword used to transfer control from a function back to the calling function is