write infinite loop in C++ which does not use any variable
or constant?
Answers were Sorted based on User's Feedback
Answer / 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 |
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
What are the comments in c++?
What is protected inheritance?
What are the main features of c++?
Which function should be used to free the memory allocated by calloc()?
Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D
What is split a string in c++?
Find the second maximum in an array?
Can we inherit constructor in c++?
what is data abstraction in C++?
How can you force instantiation of a template?
What is type of 'this' pointer? Explain when it is get created?