iGET

C Programming - MCQ Practice Questions

Practice free C Programming multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.

978 questions | 100% Free

Q.101Medium

What happens when you declare a variable without initializing it?

Q.102Hard

Which of the following correctly demonstrates pointer arithmetic?

Q.103Hard

What is the output of the following code? int a = 5; int *p = &a; int q = &p; printf("%d", q);

Q.104Medium

Which data type is most suitable for storing a decimal number with high precision?

Q.105Easy

What is the range of values for a signed char in C?

Q.106Easy

Which keyword is used to modify a variable so that it cannot be changed?

Q.107Medium

In C, which storage class has the longest scope and lifetime?

Q.108Easy

What is the size of the double data type in most 64-bit systems?

Q.109Easy

Which of the following variable names is INVALID in C?

Q.110Easy

What will be the result of sizeof(int) on a typical 32-bit system?

Q.111Medium

Which storage class variable is automatically initialized to 0 if not explicitly initialized?

Q.112Medium

Consider: long long int x; What is the minimum guaranteed size of x according to C standard?

Q.113Medium

Which of the following demonstrates proper type casting in C?

Q.114Medium

What is the difference between 'signed' and 'unsigned' char in terms of range?

Q.115Medium

Which keyword prevents a local variable from being optimized by compiler into a register?

Q.116Medium

In the declaration 'int *p, q;', what are the data types of p and q?

Q.117Medium

What happens when you attempt to store a double value in an int variable without explicit casting?

Q.118Medium

Which of the following is a correct way to declare a constant variable in modern C?

Q.119Medium

What is the output of: printf("%d", sizeof(char) + sizeof(int) + sizeof(float)); on a typical 32-bit system?

Q.120Medium

A variable declared with 'register' storage class suggests to the compiler to store it in: