Unsigned char c;
for ( c=0;c!=256;c++2)
printf("%d",c);

No. of times the loop is executed ?

Answer Posted / subbu

instead of "c++2" if there is "c++" it will not give any
errors. output will be continuosly for infinite number of
times.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better malloc or calloc?

653


What are comments and how do you insert it in a C program?

742


What is sorting in c plus plus?

565


Give the rules for variable declaration?

678


what is the height of tree if leaf node is at level 3. please explain

1602






Explain how can you determine the size of an allocated portion of memory?

624


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

1430


how should functions be apportioned among source files?

627


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1252


Who is the main contributor in designing the c language after dennis ritchie?

553


explain how do you use macro?

667


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1907


How can I dynamically allocate arrays?

594


What is the purpose of type declarations?

681


What are the types of data types and explain?

673