C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} A run time error will be generated. Prints the value of 0 one time only. There will be a compilation error reported. The loop will run infinitely many times. The program will not enter into the loop. A run time error will be generated. Prints the value of 0 one time only. There will be a compilation error reported. The loop will run infinitely many times. The program will not enter into the loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#includevoid main(){ char s[]={'a','b','c','n','c','\0'}; char *p, *str, *str1; p=&s[3]; str=p; str1=s; printf("%c", ++*p + ++*str1-32);} M N None of These P M N None of These P 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 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 Enter your age : xyz Your age is not valid 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? Syntax error 6 8 No output Runtime error Syntax error 6 8 No output Runtime error ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? None of these int funct(); int funct(int x) { return x=x+1; } void funct(x) { printf(“Hello"); } void funct(int) { printf(“Hello"); } None of these int funct(); int funct(int x) { return x=x+1; } void funct(x) { printf(“Hello"); } void funct(int) { printf(“Hello"); } ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=1; while(i<=5) { printf("%d", i); if(i>2) goto here; i++; }}fun(){ here: printf("PP");} Compiler Error 12PP345 None of These 12PP Compiler Error 12PP345 None of These 12PP ANSWER DOWNLOAD EXAMIANS APP