How to declare more than one variable on a single line?
Answers were Sorted based on User's Feedback
Answer / n
To declare multiple variables of same datatype use comma.
eg. int n1, n2, n3;
To declare variables of different datatype on a single line
use semicolon.
eg. int n; char ch; float f;
| Is This Answer Correct ? | 11 Yes | 0 No |
What is the RGB macro used for?
How do I uninstall vc++ 2015?
What is cmutex? How can we use it?
What is the difference between pointer and reference?
7 Answers IBM, Microsoft, Tech Mahindra,
How to declare more than one variable on a single line?
What is microsoft visual c++ 2010 x86 redistributable?
Do I need all the microsoft visual c++ redistributable?
What is a copy constructor? What is the need for it?
#include<stdio.h>int(){int a,*b,**c,***d,****e; a=10;b=&a;c=&b;d=&c;e=&c;printf("a=%d b=%u c=%u d=% e=%u",a,b,c,d,e);printf ("%d%d%d\n",a,a+?*b,**c+***d+,****e);return0;}
What is mfc in vc++?
How many microsoft visual c++ do you need?
What are the advantages of a message map