Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

declare a variable in cpp

// Syntax for Declaring a single variable
type variable_name;

// Syntax for Declaring multiple variables:
type variable1_name, variable2_name, variable3_name;

// Examples 

int a;
int x,y,z;

char c;
char c1,c2,c3;
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #declare #variable #cpp
ADD COMMENT
Topic
Name
9+3 =