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 is the output of the program typedef struct data; int x; sdata b;sdata;
Point out the error, if any in the program. #includestdio.hint main() int P = 10; switch(P) case 10: printf(Case 1); case 20: printf(Case 2); break; case P: printf(Case 2); break; return 0;
Bit fields CANNOT be used in union.
Which of the following statements are correct about the function long fun(int num) int i; long f=1; for(i=1; i=num; i++) f = f i; return f;
The first argument to be supplied at command-line must always be count of total arguments.