Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

closed what is the syntax for declaring a variable?

+2 votes
asked Dec 22, 2019 by kotha kushal (560 points)
closed Jun 18, 2020 by Admin
closed with the note: Question is answered.

18 Answers

0 votes
answered Jan 17, 2020 by Warisha Laique (300 points)
data type variable name;

eg: int a;

float b;

char c[3];
0 votes
answered Jan 21, 2020 by noname00 (180 points)

Hello There!

The syntax to declare a variable is 

1;-datatype variablename = initialvalue

2;-datatype variablename1,variablename2

0 votes
answered Jan 22, 2020 by BachEelor Budy VaiBhav (140 points)
Datatype identifier ;
0 votes
answered Jan 23, 2020 by anonymous
data type variable name;
0 votes
answered Mar 3, 2020 by nithyl (140 points)
datatype variblename;
0 votes
answered Jun 10, 2020 by mahesh (470 points)
data-type identifier;

eg: int a;
0 votes
answered Jun 11, 2020 by Peter Minarik (84,720 points)

The correct answer is a question: what language are we talking about?

0 votes
answered Jun 18, 2020 by saihemanth nukala (170 points)
int sam;

datatype datavariable
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...