C Programming What will be the output of given program?#includevoid main(){int a=3;for(;a;printf("%d ", a--);} no output 3 2 1 0 infinity loop 3 2 1 no output 3 2 1 0 infinity loop 3 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Any C program Needs input data. None of these Must contain at least one function. Need not contain any function. Needs input data. None of these Must contain at least one function. Need not contain any function. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 2 1 0.25 9 0.5 2 1 0.25 9 0.5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#includevoid main(){ register i=5; char j[]= "hello"; printf("%s %d", j, i);} hello 5 None of These hello garbage value Error hello 5 None of These hello garbage value Error 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);} Complier error Enter your age : xyz Your age is not valid Enter your age: xyz Your age is not valid Enter your age: xyz You have lived for 0 seconds Complier error Enter your age : xyz Your age is not valid 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 What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);} 2 3 2 4 3 3 3 4 2 2 2 3 2 4 3 3 3 4 2 2 ANSWER DOWNLOAD EXAMIANS APP