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

No. of times the loop is executed ?

Answer Posted / manishsoni

The program is as:
------------------------------------------------------------
#include<stdio.h>
#include<conio.h>
int main()
{
unsigned char c;
for(c=0;c!=256;c++2)
{
printf("%d",c);
printf("\n");
}

getch();
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

661


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1030


What is volatile keyword in c?

670


Are there any problems with performing mathematical operations on different variable types?

666


What is the modulus operator?

822






What is the size of array float a(10)?

778


Why we use void main in c?

697


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2160


How do you do dynamic memory allocation in C applications?

729


What are the different file extensions involved when programming in C?

876


Explain continue keyword in c

678


can anyone suggest some site name..where i can get some good data structure puzzles???

1733


Explain the difference between null pointer and void pointer.

764


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

1699


What is structure packing in c?

713