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

find largest clique present in graph

Why can't one open a file in a different directory like "..\test.dat"? A: Since " " is a tab character. You must employ forward slashes in your filenames, even on operating s

C language lets us do this in a structure definition by putting: bit length after the variable that is. struct packed_struct { unsigned int f1:1; unsigned int f2:1; unsigned

There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing that

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Question: (a) Describe what are dynamic pointers. Show their memory representations diagrammatically. (b) Write short notes about pointers in arrays, paying attention on

What is inheritance? Class, the vehicle, which is used to execute object-oriented concepts in C++, has given a new dimension to this idea of reusability. Many vendors now offer

evolutio of object oriented programing

Function fact explain how the process of recursion works in C++.In your answer assume that the function is called to calculate the factorial of 6?