adspace
Write a C++ program without using any loop (if, for, while
etc) to print numbers from 1 to 100 and 100 to 1;
Answer Posted / sandy
#include<iostream>
int i;
class A
{
public:
A(){cout<<i++<<endl;}
~A(){cout<<--i<<endl;}
}
int main()
{
A a[100];
return 0;
}
| Is This Answer Correct ? | 41 Yes | 10 No |
Post New Answer View All Answers
Explain the difference between null pointer and void pointer.
Is int a keyword in c?
develop algorithms to add polynomials (i) in one variable
hi send me sample aptitude papers of cts?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
`write a program to display the recomended action depends on a color of trafic light using nested if statments
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
In C programming, how do you insert quote characters (‘ and “) into the output screen?
ATM machine and railway reservation class/object diagram
write a program to find out prime number using sieve case?
write a c program to find the sum of five entered numbers using an array named number
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
How do you determine the length of a string value that was stored in a variable?
write a progrmm in c language take user interface generate table using for loop?