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 can we use cmutex?
What is microsoft visual c++ runtime library error?
What is difference between c++ and visual c++?
What are the two forms of the #include preprocessor directive?
What is the purpose of declaring a variable as unsigned?
#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;}
Explain the advantages of cwinthread class.
How to create a DLL in C++.net 2005 which we can use in VB 6.0 application ?
Is microsoft visual c++ important?
Is visual c++ the same as c++?
What is microsoft visual c++ 2013 redistributable?
What is microsoft visual c++ 2015 redistributable package x64?