C Programming 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=EXAMIANS y=EDA y=VEDA y=AMVEDA y=MVEDA y=EXAMIANS y=EDA y=VEDA y=AMVEDA ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 1 9 2 0.5 0.25 1 9 2 0.5 0.25 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function calculates the square of 'x' in C? pow(2, x) power(2, x) sqr(x) power(x, 2) pow(x, 2) pow(2, x) power(2, x) sqr(x) power(x, 2) pow(x, 2) ANSWER DOWNLOAD EXAMIANS APP
C Programming Pick the correct statements.I. The body of a function should have only one return statement.II. The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment. II and III II and IV III and IV I and II I and III II and III II and IV III and IV I and II I and III ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#define prod(a,b) a*bvoid main(){ int x=3, y=4; printf("%d", prod(x+2, y-1));} 10 12 11 15 10 12 11 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of given program if user enter value 99?#includevoid main(){int i;printf("Enter a number:");scanf("%d", &i); // 99 is given as input.if(i%5 == 0){printf("nNumber entered is divisible by 5"); }} Enter a number:99 Number is divisible by 5 complier error Enter a number:99 Run time error Enter a number:99 Number is divisible by 5 complier error Enter a number:99 Run time error ANSWER DOWNLOAD EXAMIANS APP