C Interview Questions
Questions Answers Views Company eMail

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

KINPOE,

1522

what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

College School Exams Tests,

1493

why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1557

A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1528

difference between Low, Middle, High Level languages in c ?

Bosch, Infosys,

1892

Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

XYZ,

2860

What is the difference between if else and switchstatement

1619

Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?

TCS,

2 2771

how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1479

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

4036

Write a program to generate the first n terms in the series --- 9,11,20,31,...,82

Cognizant,

1 13836

print the pattern 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 if n=5

Winit,

3 4171

#include int main( ) { Int a=300, b, c; if(a>=400) b=300; c=200; printf(“%d%d ”, b, c); return0; }

1 2669

How. To pass the entrance test

Tech Mahindra,

1 2345

C language questions for civil engineering

Tech Mahindra,

1505


Post New C Questions

Un-Answered Questions { C }

How old is c programming language?

809


Can you return null in c?

906


What are volatile variables in c?

734


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

870


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

913


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

880


What is an auto keyword in c?

899


What is a char c?

829


What does struct node * mean?

833


When should a type cast not be used?

865


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

1237


Differentiate between functions getch() and getche().

841


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

2107


how to capitalise first letter of each word in a given string?

1713


What is pass by reference in c?

908