Notes of Lesson 6 Introduction of C Programming
Notes of Lesson 6 Introduction of C Programming
The following statement "instructs" the compiler to print the text "Hello World" to
the screen.
Eg: printf("Hello World!");
Ans: Format specifiers are used together with the printf() function to tell the
compiler what type of data the variable is storing. A format specifier starts with a
percentage sign %, followed by a character.
For example, to output the value of an int variable, use the format
specifier %d surrounded by double quotes, inside the printf() function:
Example:
int myNum = 15;
printf("%d", myNum); // Output 15
4) Write advantage and disadvantages of C language?
If you know C, you will have no problem learning other popular programming
languages such as Java, Python, C++, C#, etc, as the syntax is similar.
C is very fast, compared to other programming languages, like Java and
Python.
C is very versatile; it can be used in both applications and technologies.