C Programming What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} will print Hello World Compilation Error None of these. will print garbage value will print Hello World Compilation Error None of these. will print garbage value ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program? #include\ int main(){ extern int i; i = 20; printf("%ld ", sizeof(i)); return 0; } Linker Error : Undefined symbol 'i' Depends on the Compiler 2 4 Linker Error : Undefined symbol 'i' Depends on the Compiler 2 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming int a[5] = {1,2,3}What is the value of a[4]? 3 2 0 1 Garbage Value 3 2 0 1 Garbage Value 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 Which of the following statements are correct about an array?1. The array int num[26]; can store 26 elements.2. The expression num[1] designates the very first element in the array.3. It is necessary to initialize the array at the time of declaration.4. The declaration num[SIZE] is allowed if SIZE is a macro. 1 2, 4 None of these 2, 3 1, 4 1 2, 4 None of these 2, 3 1, 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the best answer.Prior to using a pointer variable None of these. It should be both declared and initialized. It should be initialized. It should be declared. None of these. It should be both declared and initialized. It should be initialized. It should be declared. ANSWER DOWNLOAD EXAMIANS APP