• Learn the Fundamentals of C Language. • Knowing the Components. WHAT IS PROGRAMMING? • is the process of creating computer programs using a specialized language to instruct a computer to perform specific tasks. It is an essential skill in today's technology- driven world, enabling us to solve problems, automate tasks, and develop software applications that enhance our daily lives. BASIC STRUCTURE OF C LANGUAGE CODE #include <stdio.h> • A header file that is part of C standard library.
• <stdio.h> - It is used to perform input and output operations using functions like scanf(), printf(), etc. Int main() {}
• This line declares the beginning of the program. A
function should be followed by an open curly brace ({) and enclosed by close curly brace (}) return 0; • The line with a return code of 0 for the main function is generally interpreted that the program worked as expected without any error during its execution. This is the most usual way to end C++ console program. Variables • are named storage locations in memory that hold data. They act as containers for storing values that can change during the execution of a program. In C, you must declare a variable before using it. Variable declarations specify the data type and the name of the variable. C supports several data types, each designed for storing specific types of values. A data type is a classification that specifies which type of value a variable can hold and what operations can be performed on that value. DATA TYPES • int: Represents integers (whole numbers) • float: Represents single-precision floating-point numbers. • double: Represents double-precision floating-point numbers (commonly used for real numbers with decimal points). • char: Represents a single character (e.g., 'A', '5', '$'). • string: represents a sequence of characters, typically used to store and manipulate text REFERENCES • Laptante, P. A. (2005). Real-time system design and analysis (3rd ed.). A John Wiley & Sons, Inc.
• Cheng, H. (2010). C For engineers and scientist: an
interpretive approach. McGraw-Hill Inc. • Pipe, Dr. R. (2015). Fundamentals of IT and programming. Arcler Press LLC. Bronson, G. J (2001). A first book of ANSI C (3rd ed.). Bronson.
• Reyes, M.A. (2012). Fundamentals of programming: C/C++