The document discusses the basics of C programming language including the structure of a C program, comments in C, preprocessor directives, the main function, and an example C program to convert miles to kilometers. The example program includes comments to explain the code, uses #include and #define preprocessor directives, declares variables and uses functions like printf and scanf within the main function. It returns 0 at the end to indicate successful execution.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
39 views
Lect26 Basics of C Programming
The document discusses the basics of C programming language including the structure of a C program, comments in C, preprocessor directives, the main function, and an example C program to convert miles to kilometers. The example program includes comments to explain the code, uses #include and #define preprocessor directives, declares variables and uses functions like printf and scanf within the main function. It returns 0 at the end to indicate successful execution.