C Interview Questions
Questions Answers Views Company eMail

C program to read the integer and calculate sum and average using single dimensional array

420

main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*

1 613

4. main() { int c=- -2; printf("c=%d",c); }

567




Write a program to print the following series 2 5 11 17 23 31 41 47 59 ...

2 5809

void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

428

In which layer of the network datastructure format change is done

Honeywell,

522

write a c program for swapping two strings using pointer

1327

cavium networks written test pattern ..

Cavium Networks,

2328




my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

309

what is used instead of pointers in java than c?

Vuram,

1 454

#include int main(){ int a[]={1,2,3,5,1}; int *ptr=a+4; int y=ptr-a; printf("%d",y); }

Zoho,

3 1296

Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17

659

main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }

Vector, Vector India,

1 2916

#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

270

print pattern 1 1 33 33 555 555 77777777 555 555 33 33 1 1

Winit,

1 876


Post New C Questions






Un-Answered Questions { C }

which type of aspect you want from the student.

911


Write the test cases for checking a variable having value in range -10.0 to +10.0?

939


How do we make a global variable accessible across files? Explain the extern keyword?

695


List the variables are used for writing doubly linked list program.

872


write a program to find the given number is prime or not

2359






please give me some tips for the placement in the TCS.

936


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

771


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

851


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

906


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

1474


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

986


Can you think of a logic behind the game minesweeper.

956


What is C language ?

791


Why we not create function inside function.

949


application attempts to perform an operation?

727