What are the basic C programs? (JNNC Technologies)


                                                       http://jnnctechnologies.com/
                               https://clanguagetraininginvizagjnnc.blogspot.com/  
                               https://javatrainingjnnctechnologies.blogspot.com/
                                  https://pythontraininginjnnctechnologies.blogspot.com/
                                      https://dotnetjnnctechnologies.blogspot.com/
                                                   https://softwarecoursesselenium.blogspot.com/
                                     https://summerinternshipinjnnctechnologies.blogspot.com/
                                           

Code::Blocks IDE is used to write programs, most of these will work with GCC and Dev C++ compilers. The first program prints "Hello World" on output device.
...
The program for GCC should be like:
  • #include <stdio.h>
  • int main()
  • {
  • int c;
  • /* for loop */
  • for (c = 1; c <= 10; c++)
  • printf("%d\n", c);
  • return 0;

0 Comments