C Interview Questions
Questions Answers Views Company eMail

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

3 2984

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

NIC,

769

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

655




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

1 1879

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

1 2732

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

TCS,

9 3799

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

TCS,

14 6558

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

Satyam,

9 4729




write program on arrays

GE, Polycab,

3 2860

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

4 3353

can we print any string without using terminator?

Infosys, TCS,

2 5181

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

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 7062

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 1735

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 2591


Post New C Questions






Un-Answered Questions { C }

how to introdu5ce my self in serco

743


what is the significance of static storage class specifier?

821


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

931


what will be the output for the following main() { printf("hi" "hello"); }

5060


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

1403






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.

795


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

633


write a c program for swapping two strings using pointer

1222


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

999


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

720


`write a program to display the recomended action depends on a color of trafic light using nested if statments

820


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

410


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?

782


Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250

675


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

783