What will be the output of the following program code?#include<stdio.h>void main(){ int i = 10; void *p = &i; printf("%f", *(float *)p);} None of these. 10 Error 0.000000 TRUE ANSWER : ? YOUR ANSWER : ?
The default parameter passing mechanism is None of these. call by reference call by value result call by value TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#include<stdio.h>#define a 10void main(){ #define a 50 printf("%d", a);} None of These 50 Compiler Error 10 TRUE ANSWER : ? YOUR ANSWER : ?
"My salary was increased by 15%" Select the statement, which will EXACTLY reproduce the line of text above. printf("My salary was increased by 15'%'!"); printf("My salary was increased by 15/%!"); printf("My salary was increased by 15%%!"); printf("My salary was increased by 15%!"); TRUE ANSWER : ? YOUR ANSWER : ?
Choose the best answer.Prior to using a pointer variable It should be initialized. It should be both declared and initialized. None of these. It should be declared. TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} h hi followed by garbage value Error Garbage Value hi TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following operator takes only integer operands? + * % / None of these TRUE ANSWER : ? YOUR ANSWER : ?
Pick the correct statements.I. The body of a function should have only one return statement.II. The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment. II and IV I and III I and II II and III III and IV TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ static int i=5; if(--i){ main(); printf("%d ", i); }} 0 0 0 0 5 4 3 2 1 None of These Infinite Loop TRUE ANSWER : ? YOUR ANSWER : ?