Double Ended Queue in c using array

Double Ended Queue DQueue or Double Ended Queue is a generalized version of a queue data structure that allows insert and delete at both ends. Depends on requirement or operation it’s classified into 2 types  input restricted dqueue output restricted dqueue Input restricted dqueue An input–restricted dqueue is one where deletion can be made from both ends, but […]

Circular Queue in c using array

Circular queue in c Circular Queue is a linear data structure in which the operations are performed based on FIFO (First In First Out) principle and the last position is connected back to the first position to make a circle. In a normal Queue, we can insert elements until the queue becomes full. But once […]

priority queue in c using linked list

priority queue in c A priority Queue is an extension of the queue with some specific properties. Every item has a priority associated with it. An element with high priority is dequeued before an element with low priority. If two elements have the same priority, they are served according to their order in the queue. […]

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”); […]