C Interview Questions
Questions Answers Views Company eMail


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

Vector, Vector Solutions,

5 39604

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

2 3249

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

ABC,

1 4989

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

2 3346

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

3 5388

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 3746

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

IBM,

4 4641

Write a c program using for loop in switch case?

Infosys,

1 5724

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

IBM, TCS,

1500

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

1 3296

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

1595

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

Wipro,

1 3825

how to find sum of 5 digits in C?

4 5511

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

1 3147


Post New C Questions

Un-Answered Questions { C }

What is the difference between array and pointer?

562


What are static variables in c?

627


What is volatile, register definition in C

682


How will you find a duplicate number in a array without negating the nos ?

1637


Explain how are portions of a program disabled in demo versions?

649






program for reversing a selected line word by word when multiple lines are given without using strrev

1941


differentiate built-in functions and user – defined functions.

620


what is use of malloc and calloc?

1380


What is a dynamic array in c?

587


What is the purpose of sprintf() function?

595


the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b

1903


What language is lisp written in?

613


Differentiate between the = symbol and == symbol?

708


Do pointers store the address of value or the actual value of a variable?

606


Why main function is special give two reasons?

940