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);} None of these. will print garbage value Compilation Error will print Hello World None of these. will print garbage value Compilation Error will print Hello World ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 4 5 5 5 2 4 5 2 5 5 2 4 4 5 5 5 2 4 5 2 5 5 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; } 4 Linker Error : Undefined symbol 'i' Depends on the Compiler 2 4 Linker Error : Undefined symbol 'i' Depends on the Compiler 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming C programs are converted into machine language with the help of An Editor None of these. A compiler An operating system An Editor None of these. A compiler An operating system ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char string[]="Hello World"; display(string);}void display(char *string){ printf("%s", string);} will print Hello World Can't Say Compiler Error None of These will print Hello World Can't Say Compiler Error None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} Segmentation fault/runtime crash Compiler time error Undefined behavior 10 Segmentation fault/runtime crash Compiler time error Undefined behavior 10 ANSWER DOWNLOAD EXAMIANS APP