- Can structures be passed to the functions by value?
- Why cannot arrays be passed by values to functions?
- What are advantages and disadvantages of using macro and inline functions?
- What happens when recursion functions are declared inline?
- What is scope of static variables?
- What is the output of printf("\nab\bcd\ref"); C statement?
- #define cat(x,y) x##y concatenates x to y. But cat(cat(1,2),3) does not expand but gives preprocessor warning. Why?
- Is it possible to define a constant volatile variable?
- Is it possible to define a volatile pointer?
- What does ++*ip increments?
- Describe an operation involving unsigned and signed.
- a+++b;
- Is this C statement valid? malloc(sizeof(0))
- main() {fork();fork();fork();printf("hello world"); }
- what is void (*fptr[10])()?
- Which way of writing infinite loops is more efficient than others?
- # error — what it does?
- How is function itoa() written?
- How to know whether system uses big endian or little endian format and how to convert among them?
- What is forward reference w.r.t. pointers in c?
- How is generic list manipulation function written which accepts elements of any kind?
- How can you define a structure with bit field members?
- How do you write a function which takes 2 arguments - a byte and a field in the byte and returns the value of the field in that byte?
- What are the different storage classes in C?
- What are the different qualifiers in C?
- What is void pointer and what is its use?
- What is lvalue and rvalue?
- Using a variable define these -
- An integer
- A pointer to integer
- A pointer to a pointer integer
- An array of 10 integer
- An array of 10 pointer to integer
- A pointer to an array of 10 integer
- A pointer to a function that takes an integer as an argument and returns an integer
- An array of 10 pointer to function that take an integer and return an integer
- What do the following declarations mean?
- const int a;
- int const a;
- const int *a;
- int * const a;
- int const* a const;
- Is 3[myIntArr] = 5; valid where myIntArr is an array of 10 integers?
Monday, May 31, 2010
C Questions
As a C programmer you would like to give some thought to following C question.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment