C Programming char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above? fg defg cdefg bcdefg efg fg defg cdefg bcdefg efg 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=VEDA y=MVEDA y=AMVEDA y=EDA y=EXAMIANS y=VEDA y=MVEDA y=AMVEDA y=EDA y=EXAMIANS ANSWER DOWNLOAD EXAMIANS APP
C Programming What is function? Function is a block of statements that perform some specific task. Function is the fundamental modular unit. A function is usually designed to perform a specific task. All of these Function is a block of code that performs a specific task. It has a name and it is reusable. Function is a block of statements that perform some specific task. Function is the fundamental modular unit. A function is usually designed to perform a specific task. All of these Function is a block of code that performs a specific task. It has a name and it is reusable. 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 7 It will not compile because not enough initializers are given 12 24 6 7 It will not compile because not enough initializers are given 12 24 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i = abc(10); printf("%d", --i);}int abc(int i){ return(i++);} 9 None of These 11 10 9 None of These 11 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;} a[1] = 2 a[0] = 3 a[1] = 3 a[0] = 2 Compilation error a[1] = 2 a[0] = 3 a[1] = 3 a[0] = 2 Compilation error ANSWER DOWNLOAD EXAMIANS APP