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; } Linker Error : Undefined symbol 'i' 2 Depends on the Compiler 4 Linker Error : Undefined symbol 'i' 2 Depends on the Compiler 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming #includevoid main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);} 11, 10 10, 11 11, 11 10, 10 11, 10 10, 11 11, 11 10, 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?#includevoid main(){ int s=0; while(s++<10) { if(s<4 && s<9) continue; printf("%dt", s); }} 4 5 6 7 8 9 None of these 1 2 3 10 1 2 3 4 5 6 7 8 9 4 5 6 7 8 9 10 4 5 6 7 8 9 None of these 1 2 3 10 1 2 3 4 5 6 7 8 9 4 5 6 7 8 9 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the best answer.Prior to using a pointer variable It should be both declared and initialized. It should be declared. It should be initialized. None of these. It should be both declared and initialized. It should be declared. It should be initialized. 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;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 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 Enter your age: xyz You have lived for 0 seconds Enter your age: xyz Your age is not valid ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?int i = 0;printf("%d %d", i, i++); None of these 0 1 1 1 1 0 0 0 None of these 0 1 1 1 1 0 0 0 ANSWER DOWNLOAD EXAMIANS APP