To get latest updates

Bookmark This Site

Friday 11 November 2016

72.C Programming Code To Create Pyramid and Pattern

C Programming Code To Create Pyramid and Pattern

Examples to print half pyramid, pyramid, inverted pyramid, Pascal's Triangle and Floyd's triangle in C Programming using control statements.
C programming pyramids
To understand this example, you should have the knowledge of following C programming topics:
  • C if, if...else and Nested if...else Statement
  • C Programming for Loop
  • C programming while and do...while Loop
  • C Programming break and continue Statement


71.C Program to Display its own Source Code as Output

C Program to Display its own Source Code as Output

In this example, you'll learn to display source of the program using __FILE__ macro.
To understand this example, you should have the knowledge of following C programming topics:
  • C Preprocessor and Macros
  • C Programming Files I/O


70.C Program to Read a Line From a File and Display it

C Program to Read a Line From a File and Display it

This program reads text from a file and stores it in a string until enter 'newline' character is encountered.
To understand this example, you should have the knowledge of following C programming topics:
  • C Programming Files I/O
  • C Programming Strings