C Programming
What will be the output of following program code?#include int main(void){ char p; char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8}; p = (buf + 1)[5]; printf("%d", p); return 0;}

9
6
Error
None of these
5

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

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

ANSWER DOWNLOAD EXAMIANS APP