C Programming What number would be shown on the screen after the following statements of C are executed?char ch; int i; ch = 'G'; i = ch-'A';printf("%d", i); 8 5 7 9 6 8 5 7 9 6 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 Infinite loop 0123456789 10 0 Syntax error Infinite loop 0123456789 10 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the correct statement.I. The scope of a macro definition need not be the entire program.II. The scope of a macro definition extends from the point of definition to the end of the file.III. New line is a macro definition delimiter.IV. A macro definition may go beyond a line. I and II I, II and III II and III I, II, III and IV II, III and IV I and II I, II and III II and III I, II, III and IV II, III and IV ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of given program if user enter "xyz" ?#includevoid main(){float age, AgeInSeconds;printf("Enter your age:");scanf("%f", &age);AgeInSeconds = 365 * 24 * 60 * 60 * age;printf("You have lived for %f seconds", AgeInSeconds);} Enter your age: xyz You have lived for 0.00000 seconds Enter your age: xyz "after that program will stop" Enter your age: xyz You have lived for 0 seconds Run time error Enter your age: xyz You have lived for 0.00000 seconds Enter your age: xyz "after that program will stop" Enter your age: xyz You have lived for 0 seconds Run time error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:main(){ int i = abc(10); printf("%d", --i);}int abc(int i){ return(i++);} None of these. 10 9 11 None of these. 10 9 11 ANSWER DOWNLOAD EXAMIANS APP
C Programming The default parameter passing mechanism is None of these. call by value result call by value call by reference None of these. call by value result call by value call by reference ANSWER DOWNLOAD EXAMIANS APP