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 commas should be semicolons. The variable k can’t be initialized. The variable must always be the letter i when using a for loop. There should be a semicolon at the end of the statement. The increment should always be ++k . The commas should be semicolons. The variable k can’t be initialized. The variable must always be the letter i when using a for loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming C preprocessor All of these Takes care of macros Acts before compilation Takes care of include files Takes care of conditional compilation All of these Takes care of macros Acts before compilation Takes care of include files Takes care of conditional compilation ANSWER DOWNLOAD EXAMIANS APP
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 6 6 7 5 6 11 6 12 7 6 6 6 7 5 6 11 6 12 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed after execution of the following code?void main(){ int arr[10] = {1,2,3,4,5}; printf("%d", arr[5]);} None of these 0 6 5 Garbage Value None of these 0 6 5 Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following program?#includeint c[10] = {1,2,3,4,5,6,7,8,9,10}; main(){ int a, b=0; for(a=0;a<10;++a) if(c[a]%2 == 1) b+=c[a]; printf("%d", b);} 24 None of these 20 30 25 24 None of these 20 30 25 ANSWER DOWNLOAD EXAMIANS APP
C Programming The recursive functions are executed in a ........... Iterative order Last In First Out order First In First Out order Parallel order Random order Iterative order Last In First Out order First In First Out order Parallel order Random order ANSWER DOWNLOAD EXAMIANS APP