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);} Compilation Error will print Hello World None of these. will print garbage value Compilation Error will print Hello World None of these. will print garbage value ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of given program?#includevoid main(){int a=3;for(;a;printf("%d ", a--);} 3 2 1 0 3 2 1 no output infinity loop 3 2 1 0 3 2 1 no output infinity loop ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output given program?#includevoid main(){int i = -10;for(;i;printf("%d ", i++));} -10 to -1 Complier error -10 to 0 -10 to infinite -10 to -1 Complier error -10 to 0 -10 to infinite ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=-1, j=-1, k=0, l=2, m; m = i++ && j++ && k++ || l++; printf("%d %d %d %d %d", i, j, k, l, m);} 0 0 1 2 0 0 0 1 3 0 0 0 1 3 1 0 0 0 2 1 0 0 1 2 0 0 0 1 3 0 0 0 1 3 1 0 0 0 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is used to find the first occurrence of a given string in another string? strrchr() strstr() None of these strchr() strnset() strrchr() strstr() None of these strchr() strnset() ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements? arr[6] None of these arr{7} arr[7] arr{6} arr[6] None of these arr{7} arr[7] arr{6} ANSWER DOWNLOAD EXAMIANS APP