C Programming What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) The increment should always be ++k . The commas should be semicolons. There should be a semicolon at the end of the statement. The variable must always be the letter i when using a for loop. The variable k can’t be initialized. The increment should always be ++k . The commas should be semicolons. There should be a semicolon at the end of the statement. The variable must always be the letter i when using a for loop. The variable k can’t be initialized. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function calculates the square of 'x' in C? power(2, x) pow(2, x) power(x, 2) pow(x, 2) sqr(x) power(2, x) pow(2, x) power(x, 2) pow(x, 2) sqr(x) ANSWER DOWNLOAD EXAMIANS APP
C Programming When a function is recursively called all the automatic variables are stored in a .......... Register Queue Array Stack Linked list Register Queue Array Stack Linked list ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#includevoid main(){ char s[]={'a','b','c','n','c','\0'}; char *p, *str, *str1; p=&s[3]; str=p; str1=s; printf("%c", ++*p + ++*str1-32);} P M None of These N P M None of These N ANSWER DOWNLOAD EXAMIANS APP
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=AMVEDA y=MVEDA y=VEDA y=EXAMIANS y=EDA y=AMVEDA y=MVEDA y=VEDA y=EXAMIANS y=EDA ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 4 8 5 5 2 5 5 2 4 5 2 4 4 8 5 5 2 5 5 2 4 5 ANSWER DOWNLOAD EXAMIANS APP