© 2014 Firstsoft Technologies (P) Limited. login
Hi 'Guest'
Home SiteMap Contact Us Disclaimer
enggedu


  Home Placement Paper Kit Technical Questions ► C and C++ ▼

201.I have a function that is supposed to return a string, but when it returns to its caller, the returned string is garbage.

202. Write a program for String Reversal? Write a program for Palindrome check?

203.Why am I getting ``warning: assignment of pointer from integer lacks a cast'' for calls to malloc?

204. Write a program to find the Factorial of a number?

205. Write a program to generate Fibonacci series?

206. Difference between “C structure” and “C++ structure”.

207. Diffrence between a “assignment operator” and a “copy constructor”

208. What is the difference between “overloading” and “overridding”?

209. Explain the need for “Virtual Destructor”. Can we have “Virtual Constructors”?

210.What's wrong with casting malloc's return value?

211. What are the different types of polymorphism?

212. What are Virtual Functions? How to implement virtual functions in “C++”

213. What are the different types of Storage classes?

214. What is object file? How can you access object 215. file?

216. Which header file should include if you are to

217. develop a function which can accept variable number of arguments?

218. malloc is returning crazy pointer values, but I did read question 7.6 and I have included the line

extern void *malloc(); before I call it.

219. Can you write a function similar to printf()?

220. How can a called function determine the number of arguments that have been passed to it?

221. In a call to malloc, what does an error like ``Cannot convert `void *' to `int *''' mean?

222. Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

223.You can't use dynamically-allocated memory after you free it, can you?

224.How does free know how many bytes to free?

225. How do you declare, An array of three pointers to chars?

226.Why doesn't sizeof tell me the size of the block of memory pointed to by a pointer?

227. How do you declare, An array of three char pointers?

228.Is it legal to pass a null pointer as the first argument to realloc? Why would you want to?

229. How do you declare, A pointer to array of three chars?

230. What's the difference between calloc and malloc? Which should I use? Is it safe to take advantage of calloc's zero-filling? Does free work on memory allocated with calloc, or do you need a cfree?

231. How do you declare, A pointer to function which . receives an int pointer and returns a float pointer?

232.What are the following and how do they differ: int, long, float and double?

233. How do you declare, A pointer to a function which receives nothing and returns nothing?

234.Can you nest function definitions?

232.What are the following and how do they differ: int, long, float and double?

235. What do the functions atoi(), itoa() and gcvt() do?

236. Does there exist any other function which can be used to convert an integer or a float to a string?

237.What is a forward reference?

238. How would you use qsort() function to sort an array of structures?

239.What is the symbol for the modulus operator?

240. How would you use qsort() function to sort the name stored in an array of pointers to string?


Page 6

1 2 3 4 5 6 7 8 9 10 11 12 13
SLogix Student Projects

⇓Student Projects⇓
⇑Student Projects⇑
bottom