C Programming char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above? fg cdefg defg bcdefg efg fg cdefg defg bcdefg efg ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } 1 2 3 4 Runtime error 4 5 6 7 Syntax error 4 1 2 3 4 Runtime error 4 5 6 7 Syntax error 4 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 11 12 15 10 11 12 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming A function 'p' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as None of these. int (*p) (char *)[] int *p(char *)[] int(*p(char *))[] None of these. int (*p) (char *)[] int *p(char *)[] int(*p(char *))[] ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p="hi friends", *p1; p1=p; while(*p!='\0') ++*p++; printf("%s", p1);} hi friends hj grjeodt ij!gsjfoet None of These hi friends hj grjeodt ij!gsjfoet None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? 6 12 24 It will not compile because not enough initializers are given 7 6 12 24 It will not compile because not enough initializers are given 7 ANSWER DOWNLOAD EXAMIANS APP