C Interview Questions
Questions Answers Views Company eMail

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

3 5005

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

NIC,

1637

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

1579

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

1 3209

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

1 4056

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

TCS,

9 8641

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

TCS,

14 14474

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

Satyam,

9 9918

write program on arrays

GE, Polycab,

3 5352

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

4 6034

can we print any string without using terminator?

Infosys, TCS,

2 7163

#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 17659

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 10495

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 6656

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 4971


Post New C Questions

Un-Answered Questions { C }

How do you print only part of a string?

703


What is d'n in c?

764


can any one tel me wt is the question pattern for NIC exam

1674


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

1706


Explain what is the difference between text files and binary files?

750






What does it mean when a pointer is used in an if statement?

732


What is operator promotion?

738


What is I ++ in c programming?

732


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

2691


What are nested functions in c?

676


Can you write the algorithm for Queue?

1660


How can I remove the leading spaces from a string?

749


Why doesnt long int work?

726


If errno contains a nonzero number, is there an error?

936


What are the different types of control structures in programming?

775