C Programming language
C program - consists of functions and variables function - contains statements that specify the computing operations to be done. a function is called by naming it, followed by a parenthesized list of arguments. variable - stores values used during the computation main function - the function where every program begins executing. it will usually call other functions to help perform its job, some that you wrote, and others from libraries that are provided for you. #include <stdio.h> - tells the compiler to include information about the standard input/output library (ch. 7/appendix b) argument - a list of values provided by the calling function to the function it calls; it's a method of communicating data between functions. the parenthesis ( ) after the function name surround the argument list. in main(), main is defined by a function that expects no arguments, indicated by the empty list (). main() - define a function named main that receives no argument values statement - a computer operation specified by a function to be done. enclosed in braces { }. printf - a library function that prints output. requires the n newline character, even separately like printf("n");. the first argument is the string of characters to be printed, with each % indicating where one of the other arguments is to be substituted, and in what form it is to be printed. character string or string constant - a sequence of characters in double quotes n - the newline character. only represents a single character
Written for
- Institution
- Programming for python language..
- Course
- Programming for python language..
Document information
- Uploaded on
- December 25, 2023
- Number of pages
- 4
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers