C Programming What is the output of given program if user enter value 99?#includevoid main(){int i;printf("Enter a number:");scanf("%d", &i); // 99 is given as input.if(i%5 == 0){printf("nNumber entered is divisible by 5"); }} Run time error Enter a number:99 Number is divisible by 5 Enter a number:99 complier error Run time error Enter a number:99 Number is divisible by 5 Enter a number:99 complier error 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 variable k can’t be initialized. The commas should be semicolons. The variable must always be the letter i when using a for loop. The increment should always be ++k . There should be a semicolon at the end of the statement. The variable k can’t be initialized. The commas should be semicolons. The variable must always be the letter i when using a for loop. The increment should always be ++k . There should be a semicolon at the end of the statement. ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); -1 1 33 0 Compilation Error -1 1 33 0 Compilation Error ANSWER DOWNLOAD EXAMIANS APP
C Programming In an expression involving || operator, evaluationI. Will be stopped if one of its components evaluates to falseII. Will be stopped if one of its components evaluates to trueIII. Takes place from right to leftIV. Takes place from left to right II and III III and IV I and III I and II II and IV II and III III and IV I and III I and II II and IV ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } 4 5 6 7 1 2 3 4 Runtime error Syntax error 4 4 5 6 7 1 2 3 4 Runtime error Syntax error 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} will print garbage value will print Hello World Compilation Error None of these. will print garbage value will print Hello World Compilation Error None of these. ANSWER DOWNLOAD EXAMIANS APP