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
Develop Online Slot Video Game for Facebook Prepare an online slot video game for a Facebook promotion in order to draw new visits and Increase the number of "likes" of the Face

Define Enumeration in Computer Programming? Enumerated types enclose a list of constants that are able to be addressed in integer values. We can declare variables and types

#include "stdafx.h" #include iostream using namespace std; int _tmain(int argc, _TCHAR* argv[]) {             int NumbHold[5];             int * ptrNumb;

algorithm to find out all the factors of given positive integers

In the final project assignment you are asked to develop an OOP C++ class hierarchy for derivative pricing, using the binomial tree and Black-Scholes option pricing methods. You wi

the program that solve the efficiency of otto cycle

This is a test program that tests the Student and ITECH7603Class classes.     In this assignment you are provided with three input text files associated with this program:

Operation on String - C ++ Program: Write a program to define operations on string in c++. class String {    char *char_ptr;   // pointer to string contents    int le

a program to find the area under curve y=f(x) between x=a and x=b,integrate y=f(x) between the limits of a and b.   #include float start_point, /* G

Friend Functions One of the major features of OOP is information hiding. A class encapsulates data and methods to operate on that data in a single unit. The data from the class