Unsigned char c;
for ( c=0;c!=256;c++2)
printf("%d",c);
No. of times the loop is executed ?
Answer Posted / sundeep
First of all the code returns compile time error....bcoz
of "c++2",and c!=256 becoz unsigned char takes just 255
bytes..........and exceeding that results in compile time
error........
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
What are types of preprocessor in c?
What are pointers? What are stacks and queues?
What are file streams?
What is the significance of c program algorithms?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Difference between malloc() and calloc() function?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
Can the size of an array be declared at runtime?
Define and explain about ! Operator?
What is integer constants?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What is variable initialization and why is it important?
Explain what is wrong in this statement?
What is a pointer in c?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b