161. How are Structure passing and returning implemented
by the compiler?
162.Define a structure for a simple name/address record.
163. How can we read/write Structures from/to data
files?
164.What is #ifdef used for?
165. What is the difference between an enumeration and a
set of pre-processor # defines?
What do the ‘c’ and ‘v’ in argc and argv stand for?
166.What is the difference between: #include <stdio.h> and #include "stdio.h"
167.Declare a variable with addrPtr called address.
168. What is the maximum combined length of command line
arguments including the space between adjacent
arguments?
169.What is a structure and a union in C?
170.Why can't you nest structure definitions?
171. How do I initialize a pointer to a function?
172.What is the difference between the & and && operators and the | and || operators?
173.How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
174.Is it possible to take the square-root of a number in C. Is there a square-root operator in C?
175.How do you define a constant in C?
176.What is the difference between constant to pointer...
177.What are the different types of polymorphism?
178. What are bit fields?
179. Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 2 numbers. Find the missing numbers.
180. Given an array of size n. It contains numbers in the range 1 to n. Find the numbers which aren’t present.
181. Given a string,find the first un-repeated character in it? Give some test cases
182. You are given a dictionary of all valid words. You have the following 3 operations permitted on a word: delete a character, insert a character, replace a character. Now given two words - word1 and word2 - find the minimum number of steps required to convert word1 to word2. (one operation counts as 1 step.)
183. Given a cube of size n*n*n (i.e made up of n^3 smaller cubes), find the number of smaller cubes on the surface. Extend this to k-dimension
184. What is the use of bit fields in a Structure declaration?
185.List C's storage classes and what they signify.
186. To which numbering system can the binarynumber1101100100111100 be easily converted to?
187. How can I declare a function that returns a pointer to a function of its own type?
188. Which bit wise operator is suitable for checking
189. whether a particular bit is on or off?
190. Which bit wise operator is suitable for turning off
a particular bit in a number?
191.How much memory does a pointer variable allocate?
192. My compiler is complaining about an invalid redeclaration of a function, but I only define it once and call it once. What?s happening?
193.Give 2 examples of a code optimization.
194. Which one is equivalent to multiplying by 2: Left
shifting a number by 1 or Left shifting an unsigned
int or char by 1?
195.Have you heard of "mutable" keyword?
196.What can I safely assume about the initial values of variables which are not explicitly initialized?
197. Write a program to compare two strings without
using the strcmp() function?
198.To what does the term storage class refer?
199. Write a program to concatenate two strings?
200. Write a program to interchange 2 variables without
using the third one?
Page 5 |