C Interview Questions
Questions Answers Views Company eMail

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


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


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


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

2 4794

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


In which layer of the network datastructure format change is done



write a c program for swapping two strings using pointer


cavium networks written test pattern ..

Cavium Networks,


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


what is used instead of pointers in java than c?



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


3 801

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


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

Vector, Vector India,

1 1701

#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


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


1 481

Post New C Questions

Un-Answered Questions { C }

pierrot's divisor program using c or c++ code


How to implement a packet in C


write a c program for swapping two strings using pointer


write a c program to find the sum of five entered numbers using an array named number


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. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures


2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f


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


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(


if p is a string contained in a string?


how do you programme Carrier Sense Multiple Access


Without Computer networks, Computers will be half the use. Comment.


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.