What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes?#includevoid main(){ int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 1, 7, 8, 9, 0}; printf("%u, %u", a+1, &a+1);} 65474, 65488 65480, 65496 65480, 65488 None of these 65474, 65476 TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);} 3 Error Garbage value 6 TRUE ANSWER : ? YOUR ANSWER : ?
What is the correct value to return to the operating system upon the successful completion of a program? 2 Program do no return a value. -1 1 TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.#define INC(X) X++void main(){ int x=4; printf("%d", INC(x++));} 6 Error 4 5 TRUE ANSWER : ? YOUR ANSWER : ?
Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} b = 3, c = 6 a = 4, c = 6 a = 3, c = 8 b = 4, c = 6 a = 4, c = 8 TRUE ANSWER : ? YOUR ANSWER : ?
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 You have lived for 0 seconds Enter your age : xyz Your age is not valid Enter your age: xyz Your age is not valid Complier error TRUE ANSWER : ? YOUR ANSWER : ?
short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? It will not compile because not enough initializers are given 24 6 7 12 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program?#include<stdio.h>void main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} Compiler time error Undefined behavior 10 Segmentation fault/runtime crash TRUE ANSWER : ? YOUR ANSWER : ?
What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 1 2 2 1 2 2 1 1 TRUE ANSWER : ? YOUR ANSWER : ?
The recursive functions are executed in a ........... Last In First Out order Parallel order First In First Out order Random order Iterative order TRUE ANSWER : ? YOUR ANSWER : ?