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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c have circular shift operators?

734


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

671


What is the use of extern in c?

651


What is a constant and types of constants in c?

606


What is a pointer value and address in c?

636






What is realloc in c?

581


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

1746


What is the method to save data in stack data structure type?

612


Can you apply link and association interchangeably?

682


Differentiate between the expression “++a” and “a++”?

709


Why can arithmetic operations not be performed on void pointers?

594


What are the 4 data types?

604


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1078


Under what circumstances does a name clash occur?

697


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5464