c interview questions on arrays

c interview questions An array is a data structure consisting of a collection of elements and each element can be accessed index. A selection of array coding interview questions and answers. Ace your coding interview with these questions from top companies. What will be output if you will execute the following c code? #include<stdio.h> int main() { char […]

c interview questions on functions

C interview questions What is a function? What is the advantage of using functions? What is the syntax to define a function? What is the function prototype? Difference between function declaration and definition? What is built in function? What is user defined function? What is an argument and what is the parameter? What is the […]

c interview questions on pointers

c interview questions on pointers This article covers all the  pointers based c interview questions for a fresher on various patter for fresser interview in MNC’s Between the int pointer and long double pointer which pointer will consume more memory space? What is the size of a void pointer in c? What will be the […]

c interview questions on datatypes & operators

c interview questions This article covers all the  c interview questions on the data types and operator on various patter for a fresher interview in MNC’s What is the output of the following code? #include<stdio.h int main() { printf(” %d %d”, sizeof(char), sizeof(unsigned char)); printf(“\n %d %d %d”, sizeof(int), sizeof(unsigned int), sizeof(long)); printf(“\n %d %d […]

c interview questions on operator

Fresher c programming interview questions This article covers all the  c interview questions on the operator on various patter for a fresher interview in MNC’s What is the output of the following code? #include<stdio.h> main() { int x; x = -3 + 4 * 5 – 6; printf(“\n%d”, x); x = 3 + 4 % […]

c interview questions on control flow statements#2

fresher c programming interview questions  This post covers basics interview questions on control flow statements including loops, switch statements along with datatype. What is the output of the following code? #include<stdio.h> int main() { while (printf(“%c”, 65)) return 0; } What is the output of the following code? #include<stdio.h> int main() { while (printf(“%c”, 65)) […]

c interview questions on control flow statements

C interview questions on control flow statements This post covers basics interview questions on control flow statements What is the output of the following program? #include<stdio.h> int main() { if(1) printf(“hello”); printf(“bye”); return 0; } What is the output of the following program? #include<stdio.h> int main() { if(!10>!-5)    printf(“Hello”);    else     printf(“Welcome”); […]