<<<...THREE TOP REASONS FOR LEARNING C: ...>>>
*Good base for learning C++,C# or Java later
*Unix,Linux,Windows,Gaming frameworks are written in C
*Embedded systems programs are written in C
>>Constants = Literals->Cannot change
Variable= Identifiers->May change
>>Types of variables and constants:1)Primary 2)Secondary
>>Three types in primary:
integer
real(float)
Character
In a char constants,both quotes must slant to the left,like'A'
>>Variables has two meanings:
A.It is an entity whose values can change
B.It is a name given to a location in memory
>>variable names are case-sensitive and must begin with an alphabet'
>>Total keywords=32.Example char,int,float etc.
>>printf() is a function that can print multiple constants and variables
>>Format specifiers in print(),scanf():int-%i,float-%f,char-%c
>>main() is a function that must always return an integer values:
o- if it meets success,I-if it encounters failure
>> Use /*... */ or // for a commnent in a program
>>$is 'address' of operator and must be used before a variable in scanf()
YOU CAN ALSO READ THIS POST
0 Comments