Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is op?
for(c=0;c=1000;c++)
printf("%c",c);

Answers were Sorted based on User's Feedback



what is op? for(c=0;c=1000;c++) printf("%c",c);..

Answer / srsabariselvan

infinite loop.
and print the character associated with the 1000,1001,1002,....

Is This Answer Correct ?    0 Yes 0 No

what is op? for(c=0;c=1000;c++) printf("%c",c);..

Answer / vinoth

It will work fine no value or error will be displayed.

Is This Answer Correct ?    0 Yes 0 No

what is op? for(c=0;c=1000;c++) printf("%c",c);..

Answer / ashok

infinite loop

Is This Answer Correct ?    0 Yes 0 No

what is op? for(c=0;c=1000;c++) printf("%c",c);..

Answer / a programmer

This will print the ascii characters from 0 to 1000 if the
datat type of the variable c is other than character. If the
datatype of the variable is char then it will be into
infinite loop.

Is This Answer Correct ?    4 Yes 5 No

what is op? for(c=0;c=1000;c++) printf("%c",c);..

Answer / jay sean

The output of the given program is the character or ascii
value of 0,1,2,..........so on up to the stack of memory
get full.The reason behind it is the condition for
termination is not given in the for loop,because c=1000 is
assingment operator not a conditional.

Is This Answer Correct ?    0 Yes 1 No

what is op? for(c=0;c=1000;c++) printf("%c",c);..

Answer / manju

In each iteration the equivalent ascii values of 0 to 1000
will print.

Is This Answer Correct ?    5 Yes 8 No

what is op? for(c=0;c=1000;c++) printf("%c",c);..

Answer / sarath

in each iteration it will print the characters for ascii
values 0,1,2,3,...

Is This Answer Correct ?    6 Yes 11 No

what is op? for(c=0;c=1000;c++) printf("%c",c);..

Answer / shruti

It will give a compilation error..

the for loop syntax is
for(initialize; condition ; inc / dec)

condition -> assignment operator is wrong..

there should be 2 equals ("==")..

Is This Answer Correct ?    1 Yes 6 No

what is op? for(c=0;c=1000;c++) printf("%c",c);..

Answer / rohit

it will come out of the for loop & hence no output.
because,when c=0,then for next condition it will check
whether 0==1000,the condition fails here itself only.
so,it doesn't go for executing any statement.

Is This Answer Correct ?    1 Yes 6 No

what is op? for(c=0;c=1000;c++) printf("%c",c);..

Answer / p

answer 6 is absolutely correct

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More C Interview Questions

Why cd or dvd are round why not square.

1 Answers  


what is difference between array,strutter,union and pointers

3 Answers   CTS, Lovely Professional University, Mannar Company,


what is an inline function?

2 Answers   TCS,


What does sizeof return c?

0 Answers  


what are brk, sbrk?

1 Answers   Oracle,


What are the different flags in C? And how they are useful? And give example for each in different consequences?

1 Answers  


What functions are used for dynamic memory allocation in c language?

0 Answers  


What is the use of ?: Operator?

0 Answers  


What are nested functions in c?

0 Answers  


what is default constructor?

2 Answers   HCL,


There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?

8 Answers   Google,


Write a program to enter the name and age. If age>28 then find salary categories. if age<28 then find that you are gaduate or not.

1 Answers  


Categories