C Programming What will be the output of given program?#includevoid main(){int a=1;if("%d=hello", a);} 0 1 no error no output complier error 0 1 no error no output complier error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output if you will compile and execute the following c code?#include#define max 5void main(){ int i = 0; i = max++; printf("%d", i++);} 6 7 5 0 Compiler Error 6 7 5 0 Compiler Error ANSWER DOWNLOAD EXAMIANS APP
C Programming What is right way to Initialize array? int n(6) = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; 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++) There should be a semicolon at the end of the statement. The increment should always be ++k . The variable k can’t be initialized. The variable must always be the letter i when using a for loop. The commas should be semicolons. There should be a semicolon at the end of the statement. The increment should always be ++k . The variable k can’t be initialized. The variable must always be the letter i when using a for loop. The commas should be semicolons. ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?for(i=10; i++; i<15) printf("%d ", i); None of these Infinite loop 10 11 12 13 14 9 10 11 12 13 10 11 12 13 14 15 None of these Infinite loop 10 11 12 13 14 9 10 11 12 13 10 11 12 13 14 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is more appropriate for reading in a multi-word string? printf() scanf() None of these gets() puts() printf() scanf() None of these gets() puts() ANSWER DOWNLOAD EXAMIANS APP