While(1)
{
}
when this loop get terminate is it a infinite loop?
Answers were Sorted based on User's Feedback
Answer / senthilmanikandan
It is finite loop...
if loop reaches Stack Overflow then it will automatically
terminated....
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / hemas
yes, it is infinite loop.
it will terminate after stack overflow occur.
| Is This Answer Correct ? | 2 Yes | 0 No |
f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?
9 Answers Hughes, Tech Mahindra,
How many ways are there to swap two numbers without using temporary variable? Give the each logic.
What is a pointer value and address in c?
Why is c fast?
How can a string be converted to a number?
what is a function method?give example?
write a program that finds the factorial of a number using recursion?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What do you mean by a local block?
What are the ways to a null pointer can use in c programming language?
What is variables in c?
Process by which one bit pattern in to another by bit wise operation is?