C/C++ Questions
How do you write a program which produces its own source code as its output?
How can I find the day of the week given the date?
Why doesn’t C have nested functions?
What is the most efficient way to count the number of bits which are set in a value?
How can I convert integers to binary or hexadecimal?
How can I call a function, given its name as a string?
How do I access command-line arguments?
How can I return multiple values from a function?
How can I invoke another program from within a C program?
How can I access memory located at a certain address?
How can I allocate arrays or structures bigger than 64K?
How can I find out how much memory is available?
How can I read a directory in a C program?
How can I increase the allowable number of simultaneously open files?
What’s wrong with the call fopen(”c:\newdir\file.dat”, “r”)?
* Difference between arrays and pointers?
* What is the purpose of realloc( )?
* What is static memory allocation and dynamic memory allocation?
* How are pointer variables initialized?
* Are pointers integers?
* What is a pointer variable?
* What is a pointer value and address?
* What is a method?
* What are the advantages of the functions?
* What is the purpose of main( ) function?
* What is an argument ? differentiate between formal arguments and actual arguments?
* What is a function and built-in function?
* What is modular programming?
* When does the compiler not implicitly generate the address of the first element of an array?
* What are the characteristics of arrays in C?
* Differentiate between a linker and linkage?
* What are advantages and disadvantages of external storage class?
* Diffenentiate between an internal static and external static variable?
* What are the advantages of auto variables?
* What is storage class and what are storage variable ?
* Which expression always return true? Which always return false?
* Write the equivalent expression for x%8?
* What is the difference between text and binary modes?
* How can you restore a redirected standard stream?
* How do you redirect a standard stream?
* How can I search for data in a linked list?
* How can I sort a linked list?
* What is hashing?
* What is the quickest searching method to use?
* What is the easiest searching method to use?
* How can I sort things that are too large to bring into memory?
* What is the quickest sorting method to use?
* What is the easiest sorting method to use?
* What is the benefit of using const for declaring constants?
* Can static variables be declared in a header file?
* What is the difference between declaring a variable and defining a variable?
* Is it acceptable to declare/define a variable in a C header?
* When should a type cast not be used?
* When should a type cast be used?
* How can you determine the maximum value that a numeric variable can hold?
* How reliable are floating-point comparisons?
* Can a variable be both const and volatile?
* when should the volatile modifier be used?
* When should the register modifier be used? Does it really help?



No comments:
Post a Comment