C Programming What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);} 3 3 2 3 2 2 3 4 2 4 3 3 2 3 2 2 3 4 2 4 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 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 0 0 1 2 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; p="%dn"; p++; p++; printf(p-2, 300);} %d\n Error None of These 300 %d\n Error None of These 300 ANSWER DOWNLOAD EXAMIANS APP
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 garbage value None of these. Compilation Error will print Hello World will print garbage value None of these. Compilation Error will print Hello World ANSWER DOWNLOAD EXAMIANS APP
C Programming The library function used to find the last occurrence of a character in a string is laststr() strstr() None of these strrchr() strnstr() laststr() strstr() None of these strrchr() strnstr() ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:void main(){ int const *p=5; printf("%d", ++(*p));} 5 Compiler Error 6 Garbage Value 5 Compiler Error 6 Garbage Value ANSWER DOWNLOAD EXAMIANS APP