Example program of c programming, C/C++ Programming

  1. Write a c program to determine interchanged values between two variables?[Hint - if loop]
  2. What will be the output of the program?
  3. How many times this loop will execute?
  4. Write a c program to prints the number between 10 and 20?
  5. What will be output of following c code ?
  6. Which datatype cannot be checked in a switch-case statement ?
  7. Write a program to detect the entered number as to whether it is even or odd ? Use goto statement ?
  8. What will be output of following c code ?
  9. Point out the error, if any in the program.
  10. Which of the following errors would be reported by the compiler on compiling the program given below?
  11. Which of the following statements are correct about the below program?
  12. What will be output of following c code?
  13. The way the break is used to take control out of switch and continue to take control of the beginning of the switch?
  14. Write a program to find whether a year is Leap year ? [Hint : if – else Statement] ?
  15. Write about if-else statements in a C-program?
  16. Can we use a switch statement to switch on strings?
  17. Write C program for Electricity Bill ?[Hint : if – else statement]
  18. Write a syntax for Nested- if else statement?
  19. Write a program to find the roots of the quadratic equation ? [Hint : if (real) – else (imagenary) statement]
Posted Date: 3/8/2013 5:55:10 AM | Location : United States







Related Discussions:- Example program of c programming, Assignment Help, Ask Question on Example program of c programming, Get Answer, Expert's Help, Example program of c programming Discussions

Write discussion on Example program of c programming
Your posts are moderated
Related Questions
Sine function computation

Write a function to determine whether a number is prime: it will return true if the input is prime and false otherwise. Use it to see whether -7 is prime.

Scope Rules and Storage Classes The storage class verifies the life of a variable in terms of its duration or its scope. There are four storage classes : automatic static

color representation 0,1,2,3,4,5,6,7...

Syntax rules for writing a destructor function Its name is the similar as that of the class to which it belongs, except that the first character of the name is the symbol t

padovan series with words

Define Pure Virtual Function? Why & when it is used?

A student apears in exam of math, physics, and chemistry. Write a program to find the total marks aa student has aqueired find the average.


what is the function of spanning tree in graph algorithm?