Find the output of the following program.void main(){ int i=10; /* assume address of i is 0x1234ABCD */ int *ip=&i; int **ipp=&&i; printf("%x,%x,%x", &i, ip, *ipp); } 0x1234ABCD, 0x1234ABCD, 0x1234ABCD 0x1234ABCD, 0x1234ABCD, 10 0x1234ABCD, 10, 10 Runtime error Syntax error TRUE ANSWER : ? YOUR ANSWER : ?
char* myfunc(char *ptr){ ptr+=3; return(ptr);}void main(){ char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y);}What will be printed when the sample code above is executed? y=MVEDA y=AMVEDA y=VEDA y=EDA y=EXAMIANS TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char s[]="man"; int i; for(i=0; s[i]; i++) printf("%c%c%c%c ", s[i], *(s+i), *(i+s), i[s]);} mmm nnn aaa Compiler Error mmmm nnnn aaaa None of These TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following is not a valid identifier? exam_veda examians1 _examians 1examians TRUE ANSWER : ? YOUR ANSWER : ?
A preprocessor command has # as the first character need not start on a new line need not start on the first column comes before the first executable statement TRUE ANSWER : ? YOUR ANSWER : ?
Use of functions Enhances the logical clarity of the program. Helps to avoid repeated programming across programs. Helps to avoid repeating a set of statements many times. Makes the debugging task easier. All of these TRUE ANSWER : ? YOUR ANSWER : ?
The output of the following program is:#define f(g,g2) g##g2void main(){ int var12=100; printf("%d", f(var,12));} g##g2 100 Syntax error Runtime error 10012 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is a complete function? None of these void funct(int) { printf(“Hello"); } void funct(x) { printf(“Hello"); } int funct(); int funct(int x) { return x=x+1; } TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of given program?#include<stdio.h>void main(){int a=3;for(;a;printf("%d ", a--);} 3 2 1 0 no output 3 2 1 infinity loop TRUE ANSWER : ? YOUR ANSWER : ?