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

Answer Posted / abdur rab

It goes into an infinite loop.

The compiler will check only the syntax, it is upto the
programmer to implement correct logic.

other than initialization, c is always 1000 and there is no
condition to be break the loop

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of f in c?

551


program for reversing a selected line word by word when multiple lines are given without using strrev

1936


Write a code to generate a series where the next element is the sum of last k terms.

725


How to implement a packet in C

2386


What is the benefit of using const for declaring constants?

579






Can you apply link and association interchangeably?

663


What are qualifiers?

611


Explain what is the use of a semicolon (;) at the end of every program statement?

721


Describe the steps to insert data into a singly linked list.

613


write a proram to reverse the string using switch case?

2456


What is the purpose of ftell?

593


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

615


What are valid signatures for the Main function?

694


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

646


What is pragma in c?

621