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 |
What is a dll entry point?
Does c++ support exception handling?
What is c++ namespace?
Define private, protected and public access control.
What is purpose of new operator?
In a function declaration what does extern means?
Write a program which uses Command Line Arguments
You have to take 2 arrays of length 10. Input the values of array 1 from the user. Then copy the values of array 1 to array 2 in ascending order For example if user enters 9, 5, 6, 8, 1, 0, 2, 7, 4, 3 then copy the smallest element i.e. 0 first followed by 1, 2 and so
Evaulate: 22%5 a) 2 b) 4 c) 0
What does new in c++ do?
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
int *p = NULL; printf("%1d",p) ; what will be the output of this above code?