C Interview Questions
Questions Answers Views Company eMail

main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }

Vector Solutions, Vector,

5 21587

struct node {struct node*temp,*new} prinf("%d",sizeof(struct node));

2 1789

m=++i&&++j(||)k++ printf("%d"i,j,k,m)


1 3103

char p="data"; printf(p);

2 1793

read a number & print all its devisors using c-program?

3 3703

get any number as input except 1 and the output will be 1.without using operators,expressions,array,structure.don't print 1 in printf statement

3 2063

input may any number except 1,output will always 1.. conditions only one variable should be declare,don't use operators,expressions,array,structure


4 2729

Write a c program using for loop in switch case?


1 4583

Which is the memory area not included in C program? give the reason



Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 2285

what is the height of tree if leaf node is at level 3. please explain


what is level of tree if leaf node is at level 4.please explain.


1 1991

how to find sum of 5 digits in C?

4 3231

what is ans for this scanf(%%d",c);

1 2062

Post New C Questions

Un-Answered Questions { C }

how can use subset in c program and give more example


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.


i got 75% in all semester am i eligible for your company


p*=(++q)++*--p when p=q=1 while(q<=6)


the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.


Using which language Test cases are added in .ptu file of RTRT unit testing???


what are non standard function in c


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.


write a program to rearrange the array such way that all even elements should come first and next come odd


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?


Which driver is a pure java driver


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?


You have given 2 array. You need to find whether they will create the same BST or not. For example: Array1:10 5 20 15 30 Array2:10 20 15 30 5 Result: True Array1:10 5 20 15 30 Array2:10 15 20 30 5 Result: False One Approach is Pretty Clear by creating BST O(nlogn) then checking two tree for identical O(N) overall O(nlogn) ..we need there exist O(N) Time & O(1) Space also without extra space .Algorithm ?? DevoCoder guest Posted 3 months ago # #define true 1 #define false 0 int check(int a1[],int a2[],int n1,int n2) { int i; //n1 size of array a1[] and n2 size of a2[] if(n1!=n2) return false; //n1 and n2 must be same for(i=0;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }