Declaration and Initializing Variables


Variable declaration:
=================== Variable declaration is nothing but declaring type of variable.
Syntax: datatype variable1, variable2, .....;
Example:
int x, y;
float radius, area;
---
Intializing variables at the time of Declaration:
======================================
Example:
int x=10, y=30;
float radius=5.6, height=5.9;
char ch='A';

#vpsinghrajput

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 comments:

Post a Comment