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 following statement is correct about the program #includestdio.hint main() FILE fp; char ch; int i=1; fp = fopen(myfile.c, r); while((ch=getc(fp))!=EOF) if(ch == '\n') i++; fclose(fp); return 0;
How many times the while loop will get executed if a short int is 2 byte wide #includestdio.hint main() int j=1; while(j = 255) printf(c d\n, j, j); j++; return 0;
The library function used to find the last occurrence of a character in a string is
In the expression a=b=5 the order of Assignment is NOT decided by Associativity of operators.
Bit fields CANNOT be used in union.