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
What is function overriding in c++?
What is algorithm in c++ programming?
What is c++ hiding?
What is abstraction in c++ with example?
Do you know the problem with overriding functions?
what is C++ objects?
Where Malloc(), Calloc(), and realloc() does get memory?
What is the full form nasa?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
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.
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
Is it possible for a member function to use delete this?
What is token c++?
How do you sort a sort function in c++ to sort in descending order?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers