C Programming Questions and Answers – Type Conversions – 2

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Type Conversions – 2”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. function tolower(c) defined in library <ctype.h> works for ___________ a) Ascii character set b) Unicode character set c) Ascii and utf-8 but not EBCDIC character set d) … Read more

advertisement

C Programming Questions and Answers – Type Conversions – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Type Conversions – 1”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. What will be the output of the following C code? #include <stdio.h> void main() { float x = 0.1; if (x == 0.1) printf("Sanfoundry"); else printf("Advanced C … Read more

advertisement

C Programming Questions and Answers – Relational & Logical Operators – 2

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Relational & Logical Operators – 2”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. Are logical operator sequence points? a) True b) False c) Depends on the compiler d) Depends on the standard 2. Do logical operators in the … Read more

advertisement

C Programming Questions and Answers – Relational & Logical Operators – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Relational & Logical Operators – 1”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. What will be the output of the following C code? #include <stdio.h> void main() { int x = 1, y = 0, z = 5; … Read more

advertisement

C Programming Questions and Answers – Arithmetic Operators – 2

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Arithmetic Operators – 2”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. What will be the output of the following C code? #include <stdio.h> void main() { int a = 3; int b = ++a + a++ + –a; … Read more

advertisement

C Programming Questions and Answers – Arithmetic Operators – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Arithmetic Operators – 1”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. What will be the output of the following C code? #include <stdio.h> int main() { int i = -3; int k = i % 2; printf("%d\n", k); … Read more

advertisement

C Programming Questions and Answers – Declarations – 2

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Declarations – 2”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. Which of the following declaration is illegal? a) char *str = “Best C programming classes by Sanfoundry”; b) char str[] = “Best C programming classes by Sanfoundry”; c) … Read more

advertisement

C Programming Questions and Answers – Declarations – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Declarations – 1”. Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial. 1. What will be the output of the following C code? #include <stdio.h> void foo(const int *); int main() { const int i = 10; printf("%d ", i); foo(&i); … Read more

advertisement

C Programming Questions and Answers – Constants – 2

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Constants – 2”. Pre-requisite for C Constants MCQ set: Video Tutorial on C Constants. 1. enum types are processed by _________ a) Compiler b) Preprocessor c) Linker d) Assembler 2. What will be the output of the following C code? #include <stdio.h> int … Read more

advertisement

C Programming Questions and Answers – Constants – 1

This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Constants – 1”. Pre-requisite for C Constants MCQ set: Video Tutorial on C Constants. 1. What will be the output of the following C code? #include <stdio.h> int main() { enum {ORANGE = 5, MANGO, BANANA = 4, PEACH}; printf("PEACH = %d\n", PEACH); … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.