Unit vs Questions
- C and Data Structure Home
- Programming in C++
- Database Management
Systems
- Java Programming
- .NET Programming
- Data Mining and
Warehousing
- Computer Networks
- Software
Engineering
C and Data Structure
- What are static variables in C?
- What is a scope resolution operator in C ?
- What is the register variable in C language?
- What is a structure in C Language.How to initialise a structure in C?
- What is an auto variable in C ?
- What is the use of extern in C?
- What is the difference between #include <header file> and #include “header file” ?
- What are Derived data types in C ?
- Explain C preprocessor ?
- What is recursion in C ?
- Explain Enumerated types in C language?
- Differentiate call by value and call by reference ?
- List some basic data types in C ?
- What is typecasting?
- Explain about block scope in C ?
- Explain continue keyword in C
- Compare array data type to pointer data type
- What are bit fields in C ?
- What are different storage class specifiers in C
- What is NULL pointer?
- Explain main function in C ?
- What does printf does ?
- List some applications of C programming language?
- Write program to remove duplicate in an array ?
- Explain Pointers in C programming?
- What does static variable mean?
- What is a pointer?
- What are the uses of a pointer?
- What is a structure?
- What is a union?
- What are the differences between structures and union?
- What are the differences between structures and arrays?
- In header files whether functions are declared or defined?
- What are the differences between malloc () and calloc ()?
- What are macros? What are its advantages and disadvantages?
- Difference between pass by reference and pass by
- What is static identifier?
- Where is the auto variables stored?
- Where does global, static, and local, register
- Difference between arrays and linked list?
- What are enumerations?
- Describe about storage allocation and scope of
- What are register variables? What are the advantages
- What is the use of typedef?
- Can we specify variable field width in a scanf()
- Out of fgets() and gets() which function is safe to use and why?
- Difference between strdup and strcpy?
- What is recursion?
- Differentiate between a for loop and a while loop? What are it uses?
- What is storage class.What are the different storage classes in C?
- What the advantages of using Unions?
- What is the difference between Strings and Arrays?
- What is a far pointer? where we use it?
- What is a huge pointer?
- What is a normalized pointer ,how do we normalize a pointer?
- What is near pointer.
- In C, why is the void pointer useful? When would you use it?
- What is a NULL Pointer? Whether it is same as an uninitialized pointer?
- Are pointers integer ?
- What does the error ‘Null Pointer Assignment’ means and what causes this
error?
- What is generic pointer in C?
37. Are the expressions arr and &arr same for an array of integers
- How pointer variables are initialized ?
- What is static memory allocation ?
- What is dynamic memory allocation?
- What is the purpose of realloc ?
- What is pointer to a pointer.
- What is an array of pointers ?
- Difference between linker and linkage ?
- Is it possible to have negative index in an array?
- Why is it necessary to give the size of an array in an array declaration ?
- What modular programming ?
- What is a function ?
- What is an argument ?
- What are built in functions ?
- Difference between formal argument and actual argument ?
- Is it possible to have more than one main() function in a C program ?
- What is the difference between an enumeration and a set of pre-processor
# defines?
- How are Structure passing and returning implemented by the complier?
- What is the similarity between a Structure, Union and enumeration?
- Can a Structure contain a Pointer to itself?
57. How can we read/write Structures from/to data files?
- Write a program which employs Recursion ?
- Write a program which uses Command Line Arguments?
- Difference between array and pointer ?
- What do the ‘c’ and ‘v’ in argc and argv stand for?
- What are C tokens ?
- What are C identifiers?
- Difference between syntax vs logical error?
- What is preincrement and post increment ?
- write a program to interchange 2 variables without using the third one.
- hat is the maximum combined length of command line arguments
including the space
between adjacent arguments?
- What are bit fields? What is the use of bit fields in a Structure declaration?
- What is a preprocessor, What are the advantages of preprocessor ?
- What are the facilities provided by preprocessor ?
- What are the two forms of #include directive ?
- How would you use the functions randomize() and random()?
- What do the functions atoi(), itoa() and gcvt() do?
- How would you use the functions fseek(), freed(), fwrite() and ftell()?
- What is the difference between the functions memmove() and memcpy()?
- What is a file ?
- What are the types of file?
- What is a stream ?
- What is meant by file opening ?
- What is a file pointer ?
- How is fopen()used ?
- How is a file closed ?
- What is a random access file ?
- What is the purpose of ftell ?
- What is the purpose of rewind() ?
- Difference between a array name and a pointer variable ?
- Represent a two-dimensional array using pointer ?
- Difference between an array of pointers and a pointer to an array ?
- Can we use any name in place of argv and argc as command line arguments
?
- What are the pointer declarations used in C?
- Differentiate between a constant pointer and pointer to a constant ?
- Is the allocated space within a function automatically deallocated when
the function returns?
- Discuss on pointer arithmetic?
- What are the invalid pointer arithmetic ?
- What are the advantages of using array of pointers to string instead of an
array of strings?
- Are the expressions *ptr ++ and ++ *ptr same ?
- What would be the equivalent pointer expression foe referring the same
element as
a[p][q][r][s] ?
- Are the variables argc and argv are always local to main ?
- Can main () be called recursively?
- Can we initialize unions?
- What’s the difference between these two declarations?
- Why doesn’t this code: a[i] = i++; work?
- Why doesn’t struct x { … };x thestruct; work?
- Why can’t we compare structures?
- How are structure passing and returning implemented?