C Interview Questions
Questions Answers Views Company eMail

how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......

Infosys,

10 25314

what is the difference between auto and static keywords

cDot, TCS, College School Exams Tests,

1 905

Write a simple program to find the size of different basic data types in C.

3 6748




Write a program in C for showing working of different logical operator in C. Your program should guide users with proper message/menu on the console.

HCL,

3 7840

Write a function to find the area of a triangle whose length of three sides is given

2 12887

Method Overloading exist in c ?

Wipro,

3 3739

How pointer is benefit for design a data structure algorithm?

2 2279

why little endian and big endian came?y they using differently? y they not used commonly ?wt is application of little and big ?

1 1938




WHAT IS RTGS N MINIMUM AMT TO B TRANSFERD N WHAT R THE CHARGES ON MINIMUM AMT N IN WHICH BANK WE CAN DO IT?

1 2055

Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

1726

what do you mean by defining a variable in our c code?

2 3384

what is the difference between definition and declaration? give me some examples.

TCS,

2 2800

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

write a c program for greatest of three numbers without using if statment

IBM,

4 10953

what is the role you expect in software industry?

Wipro, HCL,

2 2249


Post New C Questions






Un-Answered Questions { C }

1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

1494


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

820


c program to compute AREA under integral

911


what is the diffrenet bettwen HTTP and internet protocol

613


what are bit fields? What is the use of bit fields in a structure declaration?

702






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); } }

908


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

711


At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with these names could be kept in that shelf as in this example: bottom of shelf ---> [AAAJKRDFDEWAAYFYYKK]-----Top of shelf. All these packets are to be loaded on cars. The cars are lined in order, so that the packet could be loaded on them. The cars are also named [A, B, C, D, E,………….]. Each Car will load the packet with the same alphabet. So, for example, car ‘A’ will load all the packets with name ‘A’. Each particular car will come at the loading point only once. The cars will come at the loading point in alphabetical order. So, car ‘B’ will come and take all the packets with name ‘B’ from the shelf, then car ‘C’ will come. No matter how deep in the shelf any packet ‘B’ is, all of the ‘B’ packets will be displaced before the ‘C’ car arrives. For that purpose, some additional shelves are provided. The packets which are after the packet B, are kept in those shelves. Any one of these shelves contains only packets, having the same name. For example, if any particular shelf is used and if a packet with name X is in it, then only the packets having names X will be kept in it. That shelf will look like [XXXXXXX]. If any shelf is used once, then it could be used again only if it is vacant. Packets from the initial shelf could be unloaded from top only. Write a program that finds the minimum total number of shelves, including the initial one required for this loading process.

888


how to capitalise first letter of each word in a given string?

667


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

728


how to introdu5ce my self in serco

743


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

683


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.. :(

822


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

5061


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

1738