kaldin

  • Login

C Programming


1) How many times the while loop will get executed if a short int is 2 byte wide?

#include<stdio.h>
int main()
{
    int j=1;
    while(j <= 255)
    {
        printf("%c %d\n", j, j);
        j++;
    }
    return 0;
}
  • A)

  • B)

  • C)

  • D)

Next
Show Answer:
Show Answer


More Question
What will be the output of the program #includestdio.hint main() int i=4, j=8; printf(d, d, d\n, ij&ji, ij&ji, i^j); return 0;
In the expression a=b=5 the order of Assignment is NOT decided by Associativity of operators.
What will be the output of the program #includestdio.hint main() char str[] = Nagpur; str[0]='K'; printf(s, , str); str = Kanpur; printf(s, str+1); return 0;
Which of the following errors would be reported by the compiler on compiling the program given below #includestdio.hint main() int a = 5; switch(a) case 1: printf(First); case 2: printf(Second); case 3 + 2: printf(Third); case 5: printf(Final); break; return 0;
What will be the output of the program #includestdio.hint main() char c=48; int i, mask=01; for(i=1; i=5; i++) printf(c, cmask); mask = mask1; return 0;