void main()
{
for(; 0 ;)
... {
printf("hello");
... }
getch();
}



void main() { for(; 0 ;) ... { printf("hello"); ... } getch(); }..

Answer / shaik. jani bahsa

result is nothing, because 0 means false, 1 means true
once cond false pointr comes out of the loop.

Is This Answer Correct ?    10 Yes 0 No

Post New Answer

More C Interview Questions

what is the similarities between. system call and library function?

1 Answers   Wipro,


IS Doon college of Engn.. has good faculty

1 Answers  


Just came across this question, felt worth sharing, so here it is I want you to make a C/C++ program that for any positive integer n will print all the positive integers from 1 up to it and then back again! Let's say n=5 I want the program to print: 1 2 3 4 5 4 3 2 1. Too easy you say? Okay then... You can ONLY USE: 1 for loop 1 printf/cout statement 2 integers( i and n) and as many operations you want. NO if statements, NO ternary operators, NO tables, NO pointers, NO functions!

1 Answers  


create a C program that displays one z,two y's,three x's until twenty six A's. plzz answer i need it tomorrow.

4 Answers  


What are the types of c language?

0 Answers  






write a c program to print the values in words eg:- 143 written it has (one hundred and forty three)& 104, 114 are also written words

5 Answers   Captronic, DELL, Google, IBM, Mithi, RCC, Wipro,


Can anyone help me with this please? Need to print the below values.. Thanks 1 1 2 1 2 3 1 2 3 4

3 Answers  


How can a program be made to print the name of a source file where an error occurs?

0 Answers  


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

0 Answers  


Display names and numbers of employees who have 5 years or more experience and salary less than Rs.15000 using array of structures (name, number, experience and salary)

1 Answers  


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

0 Answers   Wilco,


5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

0 Answers  


Categories