C PROGRAMMING#1: BASICS

PREPROCESSOR COMMANDS

These are built in C libraries required to be added in your programme.

The main libraries required in every C programme are -stdio and conio written as per syntax-

#include <stdio.h>

#include<conio.h>

WHAT ARE FUNCTIONS?

Functions are a set of instructions which instructs compiler to perform a specific task.

THE MAIN FUNCTION

MAIN FUNCTION WRITTEN as main()

Is the function in C which is detected first by the compiler.

DATATYPES

There are various datatypes in C

Int-It is a keyword for creating database of integer.Integer database is used to store whole numbers.Integer database is for storing whole numbers and constitutes less space.

float-It is the keyword for creating float datatype.float is capable of storing decimal values as well

There are more datatypes as well.We will learn and create our first c programme in the next post.Scroll for more posts.

 

YOU CAN INSTALL VISUAL CODE EDITOR FOR WINDOWS OR TURBO C .MAC USERS CAN INSTALL XCODE IT HAS BUILT IN C,IOS AS WELL AS ANDROID IDE YOU JUST NEED TO INSTALL IT FROM App Store

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.