Thursday, 25 August 2016
On 07:30:00 by Unknown No comments
1. What is the output of this C code?
int main()
{
enum {ORANGE = 12, MANGO, BANANA = 11, APPLE};
printf("APPLE = %d\n", APPLE);
}
{
enum {ORANGE = 12, MANGO, BANANA = 11, APPLE};
printf("APPLE = %d\n", APPLE);
}
B. APPLE=
12
2. What is the
output of this C code?
int main()
{
printf("C programming %s", "Class by\n%s AllIndiaExams", "SUPER");
}
int main()
{
printf("C programming %s", "Class by\n%s AllIndiaExams", "SUPER");
}
C. C
programming Class by %s AllIndiaExams
3. For the
following code snippet:
char *str = “AllIndiaExams.in\0? “training classes”;
The character pointer str holds reference to string:
char *str = “AllIndiaExams.in\0? “training classes”;
The character pointer str holds reference to string:
C. AllIndiaExams.in\0training
classes
4. What is the
output of this C code?
#define a 20
int main()
{
const int a = 50;
printf("a = %d\n", a);
}
#define a 20
int main()
{
const int a = 50;
printf("a = %d\n", a);
}
D. Compilation
Error
5. What is the
output of this C code?
int main()
{
int var = 010;
printf("%d", var);
}
int main()
{
int var = 010;
printf("%d", var);
}
B. 8
6. enum types are processed
by?
A. Compiler
7. What is
the output of this C code?
int main()
{
printf("AllIndiaExams\r\nclass\n");
return 0;
}
int main()
{
printf("AllIndiaExams\r\nclass\n");
return 0;
}
B. AllIndiaExams
class
8. What is the output of this
C code?
int main()
{
const int a;
a = 32;
printf("a is %d", a);
return 0;
}
int main()
{
const int a;
a = 32;
printf("a is %d", a);
return 0;
}
B. Compile time error
9. Which is false?
A. Constant variables need
not be defined as they are declared and can be defined later
10. Whats
is the output of this C code?
void main()
{
int const k = 11;
k++;
printf("k is %d", k);
}
11. Comment
on the output of this C code?
int const print()
{
printf("AllIndiaExams.in");
return 0;
}
void main()
{
print();
}
int const print()
{
printf("AllIndiaExams.in");
return 0;
}
void main()
{
print();
}
A. AllIndiaExams.in
is printed infinite number of times
B. AllIndiaExams.in
Subscribe to:
Post Comments (Atom)
Search
About Me
Followers
Popular Posts
-
1. What is database? A database is a collection of information that is organized. So that it can easily be accessed, managed, and update...
-
1. Property which allows to produce different executable for different platforms in C is called? A. File inclusion B. Selective in...
-
1. What is the output of this C code? void foo(const int *); int main() { const int i = 10; printf( "%d " , i); foo(&i...
-
It makes sure that the product is designed to deliver all functionality to the customer. Verification is done at the starting of the deve...
-
1. What is the output of this C code? int main() { enum {ORANGE = 12, MANGO, BANANA = 11, APPLE}; printf( "APPLE = %d\n...
0 comments:
Post a Comment