C Programming
What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);}

Compiler time error
Undefined behavior
Segmentation fault/runtime crash
10

ANSWER DOWNLOAD EXAMIANS APP

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 );}

The program will not enter into the loop.
The loop will run infinitely many times.
There will be a compilation error reported.
A run time error will be generated.
Prints the value of 0 one time only.

ANSWER DOWNLOAD EXAMIANS APP