C Interview Questions
Questions Answers Views Company eMail

create an SINGLE LINKED LISTS and reverse the data in the lists completely

3 3018

hi , please send me NIC written test papers to sbabavalli@gmail.com

NIC,

787

Can u please send me the exam pattern and also Previous papers to javed123go@gmail.com

679




how to print value of e(exp1)up to required no of digits after decimal?

1 1908

writw a program to insert an element in the begning of a doubly linked list

1 2765

main() { int arr[5]={23,67}; printf("%d%d%d",arr[2],arr[3],arr[4]); }

TCS,

9 3874

main() {int a=200*200/100; printf("%d",a); }

TCS,

14 6690

main() { float a=3.2e40; printf("%d",a); }

Satyam,

9 4813




write program on arrays

GE, Polycab,

3 2907

HOW TO ANSWER IF ASKED " WHAT KIND OF A PERSON ARE YOU?" I NEED AN ANSWER THAT IMPRESS THE INTERVIEWER

4 3410

can we print any string without using terminator?

Infosys, TCS,

2 5230

#include int fun(); int i; int main() { while(i) { fun(); main(); } printf("hello \n"); return 0; } int fun() { printf("hi"); } answer is hello.how??wat is tat while(i) mean?

Intel,

7 8216

wat is the difference between a definition and declaration? float y;---it looks like a declaration..but it s a definition.how?someone explain

TCS,

3 7152

void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) printf("%d",*(pint+j)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..

1 1793

void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i

TCS,

2 2635


Post New C Questions






Un-Answered Questions { C }

Why we not create function inside function.

900


Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

2868


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

710


how to make a scientific calculater ?

717


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

1294






hi send me sample aptitude papers of cts?

848


how to write optimum code to divide a 50 digit number with a 25 digit number??

1918


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

2959


why return type of main is not necessary in linux

912


write a program to create a sparse matrix using dynamic memory allocation.

3433


what is ur strangth & weekness

1013


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

195


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(); }

1002


Difference between Shallow copy and Deep copy?

806


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

917