What will be the output of the following C code? #include <stdio.h> ...
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
printf(“Hello World! %d \n”, x);
return 0;
}
What will be the output of the following C code? #include <stdio.h> int main() ...
View QuestionWhat is the size of an int data type?
a) 8 Bytes b) 4 Bytes c) Depends on the system/compiler d) Cannot be determined Answer: c Explanation: The ...
View QuestionThe format identifier ‘%i’ is also used for _____ data type.
a) float b) int c) char d) double Answer: b Explanation: Both %d and %i can be ...
View Question
What is the problem in the following variable declaration?
float 3Bedroom-Hall-Kitchen?;
What is the problem in the following variable declaration? float 3Bedroom-Hall-Kitchen?; a) The variable name begins ...
View QuestionC99 standard guarantees uniqueness of __________ characters for internal names.
a) 14 b) 31 c) 63 d) 12 Answer: c Explanation: ISO C99 compiler may consider only first 63 ...
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int y = 10000;
int y = 34;
printf(“Hello World! %d\n”, y);
return 0;
}
What will be the output of the following C code? #include <stdio.h> int main() ...
View QuestionWhich of the following is a User-defined data type?
a) typedef int Boolean; b) struct {char name[10], int age}; c) typedef enum {Mon, Tue, Wed, Thu, Fri} Workdays;
View Question
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int ThisIsVariableName = 12;
int ThisIsVariablename = 14;
printf(“%d”, ThisIsVariablename);
return 0;
}
What will be the output of the following C code? #include <stdio.h> int main() ...
View Question
What will happen if the following C code is executed?
#include <stdio.h>
int main()
{
int main = 3;
printf(“%d”, main);
return 0;
}
What will happen if the following C code is executed? #include <stdio.h> int main() ...
View Question