List of ASCII Codes

ASCII CODES Here is the list of all the ASCII CODES i found, hope you like it. .Remember that in different programs, different characters may or may not appear. For example, in notepad, the ← appears to be a – with no arrowhead. In internet browsers, especially IE, the special characters should show up accurately. […]

Read More

Tower of Hanoi in C

What is Tower of Hanoi? All must be well aware of the problem of Tower of Hanoi, for those who don’t know, let’s discuss it once again. The Tower of Hanoi (also called the Tower of Brahma or Lucas’ Tower, and sometimes pluralized) is a mathematical game or puzzle. tower of hanoi   It consists […]

Read More

C MCQs: Error Handling- Part 2

Here is a listing of C MCQs: Error Handling along with answers, explanations and/or solutions: 1. Which of the following causes an error? a) Trying to read a file that doesn’t exist b) Inability to write data in a file c) Failure to allocate memory with the help of malloc d) All of the mentioned […]

Read More

C MCQs: Error Handling- Part 1

Here is a listing of C multiple choice questions on “Error Handling” along with answers, explanations and/or solutions: 1. What is the output of this C code if there is no error in stream fp? #include <stdio.h> int main() { FILE *fp; fp = fopen(“newfile”, “w”); printf(“%d\n”, ferror(fp)); return 0; } a) Compilation error b) […]

Read More

C MCQs: File Access- Part 2

Here is a listing of C programming questions on “File Access” along with answers, explanations and/or solutions: 1. Which of the following fopen statements are illegal? a) fp = fopen(“abc.txt”, “r”); b) fp = fopen(“/home/user1/abc.txt”, “w”); c) fp = fopen(“abc”, “w”); d) None of the mentioned 2. What does the following segment of code do? […]

Read More

C MCQs: File Access- Part 1

Here is a listing of C programming interview questions on “File Access” along with answers, explanations and/or solutions: 1. The first and second arguments of fopen are a) A character string containing the name of the file & the second argument is the mode. b) A character string containing the name of the user & […]

Read More

C MCQs: Variable Length Arguments- Part 2

Here is a listing of C interview questions on “Variable Length Argument” along with answers, explanations and/or solutions: 1.The standard header _______ is used for variable list arguments (…) in C. a) <stdio.h > b) <stdlib.h> c) <math.h> d) <stdarg.h> 2. va_end does whatever. a) Cleanup is necessary b) Bust be called before the program […]

Read More

C MCQs: Variable Length Arguments- Part 1

Here is a listing of C programming questions on “Variable Length Argument” along with answers, explanations and/or solutions: 1. What is the output of this C code? #include <stdio.h> #include <stdarg.h> void func(int, …); int main() { func(2, 3, 5, 7, 11, 13); return 0; } void func(int n, …) { int number, i = […]

Read More

C MCQs: Formatted Output- Part 2

Welcome to MCQ QUIZ for preperation for C programming tests for various interviews: Here is a listing of advanced C interview questions on Formatted Output along with answers, explanations and/or solutions: 1. What does this statement printf(“%10s”, state); means? a) 10 spaces before the string state is printed b) Print empty spaces if the string […]

Read More

C MCQs: Formatted Output – Part 1

Welcome to MCQ QUIZ for preperation for C programming tests for various interviews: Here is a listing of advanced C interview questions on Formatted Output along with answers, explanations and/or solutions: 1. What is the output of this C code? #include int main() { int i = 10, j = 2; printf(“%d\n”, printf(“%d %d “, […]

Read More