Aptitude Test C Programming For Constants

Welcome to Your Quiz: Aptitude Test C Programming For Constants

Name Email
1. For the following code snippet:
char *str = “AllIndiaExams.in\0? “training classes”;
The character pointer str holds reference to string:
2. What is the output of this C code?
int main()
{
printf("AllIndiaExams\r\nclass\n");
return 0;
}
3. Which is false?
4. What is the output of this C code?
int main()
{
enum {ORANGE = 12, MANGO, BANANA = 11, APPLE};
printf("APPLE = %d\n", APPLE);
}
5. Whats is the output of this C code?
void main()
{
int const k = 11;
k++;
printf("k is %d", k);
}
6. What is the output of this C code?
int main()
{
printf("C programming %s", "Class by\n%s AllIndiaExams", "SUPER");
}
7. enum types are processed by?
8. What is the output of this C code?
#define a 20
int main()
{
const int a = 50;
printf("a = %d\n", a);
}
9. What is the output of this C code?
int main()
{
const int a;
a = 32;
printf("a is %d", a);
return 0;
}
10. What is the output of this C code?
int main()
{
int var = 010;
printf("%d", var);
}

Thank You for Submitting your response for Quiz

Aptitude Test C Programming For Constants

Please click on View Result Button to see the Result.



(Visited 63 times, 1 visits today)