write infinite loop in C++ which does not use any variable
or constant?

Answer Posted / gyanendra verma

#include<iostream.h>
#include<conio.h>
void main()
{
while!kbhit())
{
gotoxy(10,20);
printf(" Infinite loop by gyanendra verma ";
}
getch();
}
kbhit() : - A function that wait untill key press

Is This Answer Correct ?    3 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is function overriding in c++?

684


What is algorithm in c++ programming?

669


What is c++ hiding?

723


What is abstraction in c++ with example?

654


Do you know the problem with overriding functions?

662






what is C++ objects?

770


Where Malloc(), Calloc(), and realloc() does get memory?

698


What is the full form nasa?

671


an operation between an integer and real always yeilds a) integer result b) real result c) float result

820


I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.

2404


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

691


Is it possible for a member function to use delete this?

653


What is token c++?

661


How do you sort a sort function in c++ to sort in descending order?

672


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

698