C

C Subjective Questions And Answers
More interview questions and answers

What is C language?

What is the output of printf(\"%d\")?

What is the difference between \"calloc(...)\" and \"malloc(...)\"?

What is the difference between \"printf(...)\" and \"sprintf(...)\"?

How to reduce a final size of executable?

Can you tell me how to check whether a linked list is circular?

What is the difference between String and Array?

What is a modulus operator?

What are the restrictions of a modulus operator?

Which one is faster n++ or n+1?Why??

What is equivalent expression for x%8?

Which expression always return true?and Which always return false?

What is Storage class ?

what are storage variable ?

What are the advantages of auto variables?

What is auto variables?

Diffenentiate between an internal static and external static variable?

What are advantages and disadvantages of external storage class?

What are the characteristics of arrays in C?

When does the compiler not implicitly generate the address of the first element of an array?

What is modular programming?

What is a function and built-in function?

What is an argument ? differentiate between formal arguments and actual arguments?

What is the purpose of main( ) function?

What is a method?

What are the advantages of the functions?

What is a pointer variable?

What is a pointer ?

What is a pointer value and address?

Are pointers integers?

How are pointer variables initialized?

What is static memory allocation and dynamic memory allocation?

What is the purpose of realloc( )?

Difference between arrays and pointers?

What is difference between static and global static variable?

What are the packages in c?

How to use floodfill() function ?

What is the use of kbhit?

Write a program with out using main() function?

Constant volatile variable declaration is possible or not? if give any one example and reason.

How to print 1 to 100 without using any conditional loop?

How pointer variables are initialized ?

Does mentioning the array name gives the base address in all the integers?

Explain one method to process an entire string as one unit?

How can we check whether the contents of two structure variables are same or not?

How can we read/write structures from/to data files?

What are bit fields?

If we want that any wildcard characters in the command line argument should be approxiemately expanded , are we required to make any special provision?if yes, which?

What is the use of bit fields in a structure declaration?

What is object file?

How can you access object file?

What do the functions atoi(),itoa()and gctv()do?

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

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

How would you use bsearch()function to search a name stored in array of pointers to string?

How to add 2 numbers without + sign?

Write a program for n lines 1 2 3 4 5 16 17 18 19 6 15 24 25 30 7 14 23 22 21 8 13 12 11 10 9

How to decide even and odd values without decision making loops?

How i can run *.bat or *.cmd file by using system function in c ?

Why does a linker error occurs for the segment: main() { extern int i; i=20; printf("%d",sizeof(i)); }

Can there be a mouse click and drag function used together to rotate a circle in c

Can there be a mouse click and drag function used in c?

What is the difference between compile time error and run time error?

How to connect a database (MS Access) to Borland C?

Waht is difference between strdup and strcpy?

What are bit fields? What is the use of bit fields in a structure declaration?

Are the variables argc and argv are local to main()?

What are enumerations?

Write down the equivalent pointer expression for reffering the same element a[i][j][k][l]?

What is the use of typedef?

Which mistakes are called as token error?

What is the function of % using in formatted string.

What is the difference between #include and #include ?file?

How to print the names of employees or students in alphabetical order using C programming?

When should we not use Quick sort as a sorting technique?

How should i rate on the basis of the basis of the scenario the insertion sort , bubble sort , Quick Sort?

What are comment line arguments in C programing?

What is the difference between null array and an empty array?

How to write a program to print its own source code?

Difference between malloc and calloc?

How much memory does a static variable takes?

What are the uses of pointers in c and c++ language?

Can we execute printf statement without using semicolan?

How to perform addition,subtraction of 2 numbers without using addition and subtraction operators?

How to write a program in c to print its own code?

What is the function of c?

Is C is platform dependent or independent?how and why?

how to print this : 1 11 121 1331 14641 using for loop

how to switch the values of two variable without using third variable?

#include #include void main() { printf("%d"); getch(); }

How many nodes do a complete full binary tree with 10 leaves have?

how to print this : 1 11 121 1331 14641 using for loop?

What is Difference Between C/C++?

Define the generic programming?

What are the types of file pointers?and whats the uses of the file pointers?

How to reverse a string using a recursive function, with swapping?

I want to have a program to read a string and print the frequency of each character and it should work in turbo c

Write a function for strtok()?

What is the difference between char *a and char a[]?

What is a memory leak?

What is difference b/w huge & far & near pointer?

What is the difference between system call and library function?

Whar is the Auto storage class in C ?

How to convert an char array to decimal array?

How to fill a rectangle using window scrolling in C?

Explain about storage of union elements.

How to differentiate while and do while statement?

How to convert a string into integer?

How to print our name without using semicolon in c?

How to print value of integers into words?

What will be the output of x++ + ++x?

what are header files?Can i run program without using header file?

What is macro?

How multiplication take place upto 200 digits?

How to differentiate i++* and *++i?

What is the difference between getch() and getchar()?

Write a program crashed before reaching main? If happen, how?

Write a program for 1 232 34543 4567654?

What does exit() do?

What is the difference between memcpy and strcpy?

How can we handle exceptions in C?

How to compare two strings without using the strcmp() function?

How to access or modify the constt variable in C ?

What is an volatile variable?

How the processor registers can be used in C?

IF **p and &(*p) are same, than tell how?

Can you write function similar to printf()?

How to use functions fseek(), freed(), fwrite() and ftell()?

What do you understand about datatype?

What are the data type modifiers?

what are the constants?Explain in brief?

How to differentiate b/n definition and declaration?

How to define their types of variables and initialize them?

What is type casting?Explain it with an example?

What are the Array?How to define and declare them?

What are the Array Indexing?explain.

What do you understand about String?Explain it.

What are the reserved Keywords?Explain it.

What are the ANSI reserved names in C?

What are the pointers?How to declare them?

What are the Indirection?Explain with an example?

What are the Function Pointer?Explain with an example?

What are the Bit Operators?

What are the External Variables?

How to define structure in C?

How do u understand about structures of arrays?

How do you define offsetof() Macro?

What the use of malloc() function?

What are the different types of malloc() function in C?

What is the use of calloc() function?

What are the different type of calloc() function?

How to use free() function?

How to differentiate local memory and global memory?

What is the significance of disk files?

What are the Text Files and Binary Files?

What are the temporary disk files?How to create them?

What are the stream files?

What are the stdin and stdout file?

What is the stdaux file?

What do you understand about Direct port I/O?

What is the data management?Also define Sorting, merging and purging, Indexed files?

What are the Linked List?

What is the Double LinkedList?

What is the difference b/n Linear search and Binary search?

What do you understand about B-Tree?

What is Thrashing?

What is a pragma?

What is the difference between the Heap and the Stack?

Why n++ executes faster than n+1?

What is the difference b/n a linker and linkage?

What is the difference b/n run time binding and compile time binding?

Write algorithm to reverse a singly linked list.

WHAT IS LIMITATIONS IN C?

How to use functions in arrarys? it gives a linker error that function is not defined!!

Write a program to find the squares of n number using do-while.

sum of all number in between range use recursive function.

what happen if we declare a constructor after destructor?

Write a progarm to count number of vowels,consonant,digit spaces and other character type.

what is hashing?

What is diference between malloc() and calloc()?

Write c program to print all even numbers from 56 to 76 including 56 and 76 using loop.

Explain pointer with the help of an example.

i have an assignement in wihich i have to print a triangle like this: 1 1 2 3 1 2 3 4 5 1 2 3 4 5 6 7 1 2 3 4 5 6 7 8 9 please help me how do i print this?

In the following figure: A B C D E F G H I Each of the digits 1, 2, 3, 4, 5, 6, 7, 8, and 9 is: a)Represented by a different letter in the figure above. b)Positioned in the figure above so that each of A + B + C,C + D +E,E + F + G, and G + H + I is equal to 13. Which digit does E represent? how to solve that type of question.........

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Nested looping structure C programs

What are macros?

What is a NULL pointer?

How is it different from an unutilized pointer?

How is a NULL pointer defined?

What is the difference between malloc() and calloc()?

How do you reverse a singly linked list?

How do you reverse a doubly linked list?

How do you sort a linked list?

Write a C program to sort a linked list.

How do you reverse a linked list without using any C pointers?

How would you detect a loop in a linked list? Write a C program to detect a loop in a linked list.

Write a C program to find the depth or height of a tree.

Write a C program to determine the number of elements (or size) in a tree.

Write a C program to delete a tree (i.e, free up its nodes)

Write C code to determine if two trees are identical.

Write a C program to find the minimum value in a binary search tree.

Write a C program to compute the maximum depth in a tree?

Is that possible to pass a structure variable to a function/ If so,explain the detailed ways?

write a c program to accept a number between 3 & 10 & print a square of stars. if user enters 4 the output should be as shown **** * * * * ****

What is C?

string constants should be enclosed with a.single quotes b.double quotes

Which of the following is the structure of an if statement? A. if (conditional expression is true) thenexecute this codeend if B. if (conditional expression is true)execute this codeend if C. if (conditional expression is true) {then execute this code>->} D. if (conditional expression is true) then {execute this code}

Different data types for different types of data in C

Data Type in C

Storage Class in C

Different Format Specifier in C