Notification texts go here Contact Us Buy Now!

Syntax Of Variable Initialisation In C Language

Syntax Of Variable Initialisation In C Language

Syntax Of Variable Initialisation In C Language

What Is Variable Initialization In C?

In Variable Initialization We Can Assign Value / Data To Variable,
Variable Is A Container And Memory Location / Memory Address In Which We Can Store Data.

We Can initialise A Variable In C Language 

Variable Declaration Syntax :

Syntax : DataType Variable Name ;

Variable Initialization Syntax :

Syntax : Variable = Value;

example : 

1 ) Int A;     For Integer Value Variable

2 ) float A;    For Float Value Variable

3 ) char A;     For Character Value Variable

4 ) double A;    For Double Value Variable

5 ) long A;          For Long Value Variable

Example : 

#include<stdio.h>

main()

{

        Int A;     For Integer Value Variable

            A= 1;

        float B;    For Float Value Variable

                B=1.5;

        char C;     For Character Value Variable

                    C= 'S';

        double D;    For Double Value Variable

                        D= 225;

        long E;      

                    E= ;

    

}


Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.