When is a “switch” statement preferable over an “if” statement?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Is c still used?

0 Answers  


i want to asked a question about c program the question is: create a c program that displays all prime numbers less than 500? using looping statement

5 Answers  


How can you print HELLO WORLD without using "semicolon"?

7 Answers   HCL, Infosys,


Describe newline escape sequence with a sample program?

0 Answers  


Are comments included during the compilation stage and placed in the EXE file as well?

0 Answers  






how can make variable not in registers

1 Answers   TCS,


What is declaration and definition in c?

0 Answers  


Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 5 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.

1 Answers  


why you will give me a job in TCS.

7 Answers   TCS,


What is output redirection?

0 Answers  


1. Write a c pgm to print 1 to 100 without using loops. 2. Write a c pgm for leap year 3. Write a c pgm fibbonacci series,factorial 4. Write a c pgm count no of lines , blanks, tabs in a para(File concept) 5. Write a c pgm to print the letter as per given condition i.e.. if u give 4 out put should b 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 6.how do get the o/p in number from 1 to 100 in the screen without using control statement? 7. who do u print the word "hello world" without using "printf" statement? 8. write sql program to get the detail of student in a class? Definitions: structure union arrays linkedlist macros directives difference b/w pre processorsDiffrence: 1.Constructors and destructors 2.Structure and Union 3.Array and Lists 4.pre processor... 5. Privillages in C++ 6.structure and union 7.break and continue 8.while and dowhile Pgm..

3 Answers  


where can function pointers be used?

2 Answers  


Categories