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


Please Help Members By Posting Answers For Below Questions

What is string length in c?

723


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

768


What is pointers in c with example?

673


What is modifier & how many types of modifiers available in c?

706


Difference between MAC vs. IP Addressing

733






Do you have any idea how to compare array with pointer in c?

712


What is I ++ in c programming?

713


What is the heap?

810


Do you know the use of fflush() function?

701


What are c header files?

676


When should the volatile modifier be used?

781


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3160


Who invented bcpl language?

814


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

2053


Define VARIABLE?

797