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

5
Error
6
None of these
9

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++)

There should be a semicolon at the end of the statement.
The commas should be semicolons.
The increment should always be ++k .
The variable must always be the letter i when using a for loop.
The variable k can’t be initialized.

ANSWER DOWNLOAD EXAMIANS APP