C Programming Determine Output:void main(){ char string[]="Hello World"; display(string);}void display(char *string){ printf("%s", string);} Compiler Error None of These Can't Say will print Hello World Compiler Error None of These Can't Say will print Hello World ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of given program if user enter "xyz" ?#includevoid main(){float age, AgeInSeconds;int value;printf("Enter your age:");value=scanf("%f", &age);if(value==0){printf("\\nYour age is not valid");}AgeInSeconds = 365 * 24 * 60 * 60 * age;printf("\\n You have lived for %f seconds", AgeInSeconds);} Enter your age: xyz Your age is not valid Complier error Enter your age : xyz Your age is not valid Enter your age: xyz You have lived for 0 seconds Enter your age: xyz Your age is not valid Complier error Enter your age : xyz Your age is not valid Enter your age: xyz You have lived for 0 seconds ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following code:void main(){ int a[5] = {6,8,3,9,0}, i=0; if(i != 0) { break; printf("%d", a[i]); } else printf("%d", a[i++]);}What is the output of the above program? 8 No output Syntax error 6 Runtime error 8 No output Syntax error 6 Runtime error ANSWER DOWNLOAD EXAMIANS APP
C Programming int a[5] = {1,2,3}What is the value of a[4]? 1 3 2 0 Garbage Value 1 3 2 0 Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming A function 'p' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as None of these. int(*p(char *))[] int *p(char *)[] int (*p) (char *)[] None of these. int(*p(char *))[] int *p(char *)[] int (*p) (char *)[] ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?void main(){ char str1[] = "abcd"; char str2[] = "abcd"; if(str1==str2) printf("Equal"); else printf("Unequal");} None of these. Equal Error Unequal None of these. Equal Error Unequal ANSWER DOWNLOAD EXAMIANS APP