C Interview Questions
Questions Answers Views Company eMail

How to print all the 26 alphabets in this order in C. AbCdEfGh..... it should print dynamically from a to z and do not print this using pgm like this print("Ab......"); Use loops or anything to print all alphabets

Hexaware,

2 3901

why we wont use '&' sing in aceesing the string using scanf

HCL,

1032

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

InterGraph,

1034




There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.

HCL, iGate,

1 3271

in linking some of os executables are linking name some of them

IBM,

857

difference between native and cross compilers

865

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

1790

when i declare as: void main() { clrscr(); int a=10; printf("%d",a) } my problem that why generate a error in above programs. please tell me answer seriously .

4 7368




Develop a program that computes the new price of an item. The program should receive a character variable colour and a double precision floating-point variable price from the user. Discount rate is determined based on the colour of the discount sticker, as shown in the following table. An error message should be printed if an invalid colour has been entered

1 2252

#include main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf("\n%d",j) i+=j; } }

HCL,

6 3270

#include main(0 { printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3)); }

HCL,

4 7116

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?

KPIT,

878

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

KPIT,

2008

program for swapping two strings by using pointers in c language

1 6382

say the following declaration is correct nr not. int b=a,n=0;

Wipro,

4 2300


Post New C Questions






Un-Answered Questions { C }

How to implement a packet in C

1580


Between macros and functions,which is better to use and why?

816


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

5255


What is pre-emptive data structure and explain it with example?

2440


write a c program to calculate sum of digits till it reduces to a single digit using recursion

1893






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

1790


what are the facialities provided by you after the selection of the student.

946


hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

941


what is the different bitween abap and abap-hr?

968


largest Of three Number using without if condition?

185


string reverse using recursion

1066


application attempts to perform an operation?

712


Write a Program to accept different goods with the number, price and date of purchase and display them

3431


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

857


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

887