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

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

281. What are the advantages of using pointers in a program?

282. How can I get the numeric value (i.e. ASCII or other character set code) corresponding to a character, or vice versa?

283. What is the difference between Strings and Arrays?

284. What is a far pointer? Where we use it?

285. How will you declare an array of three function pointers where each function receives two int and returns a float?

286. What is the right type to use for Boolean values in C? Is there a standard type? Should I use #defines or enums for the true and false values?

287.A third-party header file I just started using is defining its own TRUE and FALSE values incompatibly with the code I've already developed. What can I do?

288. What is NULL pointer? Whether it is same as anun-initialized pointer?

289. Isn't #defining TRUE to be 1 dangerous, since any nonzero value is considered ``true'' in C? What if a built-in logical or relational operator ``returns'' something other than 1?

290. What is “strstream” ?

291. Explain “passing by value”, “passing by pointer” and “passing by reference”

292. Have you heard of “mutable” keyword?

293. What is a “RTTI”? 294. Is there something that I can do in C and not in C++?

295. What is the difference between “calloc” and “malloc”?

296. What will happen if I allocate memory using “new” and free it using “free” or allocate sing “calloc” and free it using “delete”?

297. Difference between “printf” and “sprintf”. What is “map” in STL?

298.Should I use symbolic names like TRUE and FALSE for Boolean constants, or plain 1 and 0?

299. When shall I use Multiple Inheritance?

300. Explain working of printf.

301. Write a program which employs Recursion?

302. Write a program which uses Command Line Arguments?

303. Write a program which uses functions like strcmp(), strcpy(), etc.?

304.How can I write a generic macro to swap two values?

305. What are the advantages of using typedef in a program?

306.I'm splitting up a program into multiple source files for the first time, and I'm wondering what to put in .c files and what to put in .h files. (What does ``.h'' mean, anyway?)

307. How would you dynamically allocate a one-dimensional and two-dimensional array of integers?

308.Is it acceptable for one header file to #include another?

309. When reallocating memory if nay other pointers point the same piece of memory, do you have to readjust these other pointers or do they get readjusted automatically?

310.I'm #including the right header file for the library function I'm using, but the linker keeps saying it's undefined.

311.What is the ``ANSI C Standard?''

312Does the sizeof operator work in preprocessor #if directives?

.313. Which function should be used to free the memory allocated by calloc()?

314.How can I list all of the predefined identifiers?

315. How much maximum can you allocate in a single call to malloc()?

316.How can I use a macro argument inside a string literal in the macro expansion?

317. Can you dynamically allocate arrays in expanded memory?

318.How can I include expansions of the __FILE__ and __LINE__ macros in a general-purpose debugging macro?

319. What is a void return type?

320. How is it possible for two String objects with identical values not to be equal under the == operator?

Page 8

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

⇓Student Projects⇓
⇑Student Projects⇑
bottom