C Programming Tutorial - The Next Web

Stay Connected With Us Because, We will provide you the brief knowledge of every upcoming and old technologies . --TRENDS ARE HERE--

Breaking

Home Top Ad

Responsive Ads Here

Post Top Ad

Responsive Ads Here

Friday, July 12, 2019

C Programming Tutorial

C PROGRAMMING TUTORIALS 



Hello and welcome to our site. Today's blog is about basics of C programming. C itself is a very basic language of computer. And if one masters in C then it becomes easy to access all languages.


                 Image result for c language

Features Of C Programming
  • Preprocessor - Preprocessor are used to process files of C. It is denoted by "#".
  • Header Files - Header files are files that contain functions declarations. The example - studio is a header file in C. Header files are used with .h extension.
  • Data Types - Data types in C are of 2 types
  • 1. Primary Data Types                      2. User Defined Data Types
  • Primary Data Types - void, int, char, float
  • User Defined Data Types - structure, union, pointer, array.
  • Functions - C program can be viewed as a set of functions.
  • Functions can be identified by "()".
  • Example - main (), printf (). Note - main() is a compulsory function.
  • Execution of programme starts from function main().
  • Constants - A constant is a quantity that does not change during the program execution.
  • There are 4 types of constants
  • 1. Integer 2. Real 3. Character 4. String
  • 1. Integer - Example- 3, 100, -89.
  • 2. Real - Example- 12.1 , 0.45. 3.
  • 3.Character - Character constant is denoted in single quotes. Example- 'S'. To access the characters, there are some pre-defined integer values in C which are known as ASCII values. A-Z = 67-90 a-z = 97-122 0-9 = 48-57
  • 4. String - String constantly is denoted in double quotes.Example - "Ram".
  • Keywords - Keywords are the words whose meaning has already been explained to the C compiler. We cannot use keywords as a variable name. Example- if, break, else.
  • Variables - A variable can be considered as a name given to the location in memory where tge constant is stored. Note - Variable name should not be a keyword.
  • Comments - Comments are used to understand purpose of any particular statement, group of statements or functions in the program. Comments are not the part of program execution. Comments start with /* and end with */.

THANK YOU FOR YOUR SUPPORT AND CARE
THATS ALL FOR TODAY , STAY TUNED AND UPDATED TO GET THE TRENDING UPDATES IN THE FIELD OF TECHNOLOGY
IF YOU DONT HAVE SUBSCRIBED OUR BLOGGER THAN GO THROUGH THE LINK GIVEN BELOW :-https://thenextweby.blogspot.com/
YOU CAN FOLLOW US ON TWITTER :-https://twitter.com/coder_trial

No comments:

Post a Comment

Post Bottom Ad

Responsive Ads Here