C Programming What will be the output of the given program?#includevoid main(){int a=11,b=5;if(a=5) b++;printf("%d %d", ++a, b++);} 6 7 5 6 6 6 11 6 12 7 6 7 5 6 6 6 11 6 12 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) The commas should be semicolons. The increment should always be ++k . The variable must always be the letter i when using a for loop. The variable k can’t be initialized. There should be a semicolon at the end of the statement. The commas should be semicolons. The increment should always be ++k . The variable must always be the letter i when using a for loop. The variable k can’t be initialized. There should be a semicolon at the end of the statement. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements? arr[7] None of these arr[6] arr{6} arr{7} arr[7] None of these arr[6] arr{6} arr{7} ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i); Syntax error 0 Infinite loop 10 0123456789 Syntax error 0 Infinite loop 10 0123456789 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 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 Complier error Enter your age : xyz Your age is not valid Enter your age: xyz Your age is not valid ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char far *farther, *farthest; printf("%d..%d", sizeof(farther), sizeof(farthest));} 2..2 2..4 4..4 4..2 2..2 2..4 4..4 4..2 ANSWER DOWNLOAD EXAMIANS APP