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 |
How a dll will be sharable by more than one exe?
What is the file extension used for C++ class implementation files?
#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;}
how to declare and populate an array of checkBoxes
What Is Your Greatest Weakness?
4 Answers Apple, Infosys, IOCL, Servion, TCS, VisionTek,
What is cwinthread class?
How do I get rid of microsoft visual c++ runtime library error?
What is vcredist_x86 exe?
What is vcredist?
What is splitter window in vc++?
How to Use mfc71d.dll not mfc71.dll ?
What is a wizard?