C Interview Questions
Questions Answers Views Company eMail

What is ambagious result in C? explain with an example.

Infosys,

978

Derive the complexity expression for AVL tree?

1 2065

what is difference between declaring the pointer as int and char in c language?

3 9613




wt is diference between int and int pointer as same as float and float pointer and char and char pointer

CTS, Infosys,

8 7279

write a c program to change only the 3rd bit of the particular number such that other bits are not affected.. if bitnum=10(say.. it can be any no..

Bosch, Mind Tree,

10 21764

What is key word in c language?

ABC,

4 5980

write the output of following code .. main() { static int a[]={10,20,30,40,50}; int *ptr=a; static int arr[2][2]={1,2,3,4}; char str[]="ABCD * 4#"; char *s=str+2; int i,j; for(i=0;i<5,i++) printf("%d",*ptr++); for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d\n",*(*(n+i)+j)); printf("%c\n%c\n%c\n",*(str+2),*s++,*--s); }

1 2280

what is c programing

Wipro,

11 6793




how to swap two nubers by using a function with pointers?

1 2101

Write a c program to Find the name that you entered is male name or female name? Such as Sunjay is name of male and Payal is name of female

Infosys, Luminous,

5 11790

swapping of two numbers without using third variable using AND and OR operators

2 4864

why integer range between -327680to+32767

2 6542

Write c-code for 5+55+555+5555+55555+555555+5555555. Output will be it's answer...

TCS,

4 13544

main() { int i=5; printf("%d%d%d%d",i++,i--,i); }

10 6009

main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }

3 1881


Post New C Questions






Un-Answered Questions { C }

show how link list can be used to repersent the following polynomial i) 5x+2

855


will u please send me the placement papers to my mail???????????????????

563


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

654


what is the structure pointer?

878


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

863






in a town the percentage of men is 52 the percentage of total literacy is 48 if total percentage of literate men is 35 of the total population write a program to find the total no of the literate men and women if the population of the town is 80000

9153


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

363


write a progrmm in c language take user interface generate table using for loop?

769


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

3876


The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.

773


program to convert a integer to string in c language'

1039


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.

831


Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80

1505


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

1280


how we can make 3d venturing graphics on outer interface

2693