Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / gandhi priyank

goto statment is also right because goto statement is not a
loop
e.g.
void main()
{
j:
printf("type your text here");

goto j;
}

Is This Answer Correct ?    10 Yes 42 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why string is used in c?

960


Difference between constant pointer and pointer to a constant.

1084


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1101


Explain the difference between exit() and _exit() function?

1124


Explain what is the advantage of a random access file?

1079


What is the use of ?: Operator?

1093


How many data structures are there in c?

1076


What is the stack in c?

1090


What is difference between union and structure in c?

1090


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

1042


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1687


what type of questions arrive in interview over c programming?

1991


How many keywords (reserve words) are in c?

1101


What is typedf?

1081


How can I insert or delete a line (or record) in the middle of a file?

989