C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} There will be a compilation error reported. A run time error will be generated. The program will not enter into the loop. The loop will run infinitely many times. Prints the value of 0 one time only. There will be a compilation error reported. A run time error will be generated. The program will not enter into the loop. The loop will run infinitely many times. Prints the value of 0 one time only. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of this program on an implementation where int occupies 2 bytes?#include void main(){ int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j);} i=3 j=2 i=5 j=2 i=4 j=2 the behavior is undefined i=3 j=2 i=5 j=2 i=4 j=2 the behavior is undefined ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} hi followed by garbage value Error Garbage Value h hi hi followed by garbage value Error Garbage Value h hi ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the base data type of a pointer variable by which the memory would be allocated to it? Depends upon the type of the variable to which it is pointing. int float unsigned int No data type Depends upon the type of the variable to which it is pointing. int float unsigned int No data type ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 2 2 2 1 1 2 1 1 2 2 2 1 1 2 1 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#includevoid main(){ register i=5; char j[]= "hello"; printf("%s %d", j, i);} Error hello 5 hello garbage value None of These Error hello 5 hello garbage value None of These ANSWER DOWNLOAD EXAMIANS APP