C Programming Which one of the following is not a reserved keyword for C? register auto case main default register auto case main default ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int i=10; /* assume address of i is 0x1234ABCD */ int *ip=&i; int **ipp=&&i; printf("%x,%x,%x", &i, ip, *ipp); } Runtime error 0x1234ABCD, 0x1234ABCD, 0x1234ABCD 0x1234ABCD, 10, 10 Syntax error 0x1234ABCD, 0x1234ABCD, 10 Runtime error 0x1234ABCD, 0x1234ABCD, 0x1234ABCD 0x1234ABCD, 10, 10 Syntax error 0x1234ABCD, 0x1234ABCD, 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming 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? 24 12 7 6 It will not compile because not enough initializers are given 24 12 7 6 It will not compile because not enough initializers are given ANSWER DOWNLOAD EXAMIANS APP
C Programming The declarationint (*p) [5];means p is one dimensional array of size 5, of pointers to integers. p is a pointer to a 5 elements integer array. The same as int *p[ None of these. p is one dimensional array of size 5, of pointers to integers. p is a pointer to a 5 elements integer array. The same as int *p[ None of these. ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of given program if user enter "xyz" ?#includevoid main(){float age, AgeInSeconds;printf("Enter your age:");scanf("%f", &age);AgeInSeconds = 365 * 24 * 60 * 60 * age;printf("You have lived for %f seconds", AgeInSeconds);} Enter your age: xyz You have lived for 0.00000 seconds Enter your age: xyz "after that program will stop" Enter your age: xyz You have lived for 0 seconds Run time error Enter your age: xyz You have lived for 0.00000 seconds Enter your age: xyz "after that program will stop" Enter your age: xyz You have lived for 0 seconds Run time error ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 30 10 15 1 -5 30 10 15 1 -5 ANSWER DOWNLOAD EXAMIANS APP