main()

{

char i=0;

for(;i>=0;i++) ;

printf("%d\n",i);

}

Answer Posted / susie

Answer :

Behavior is implementation dependent.

Explanation:

The detail if the char is signed/unsigned by default
is implementation dependent. If the implementation treats
the char to be signed by default the program will print –128
and terminate. On the other hand if it considers char to be
unsigned by default, it goes to infinite loop.

Rule:

You can write programs that have implementation
dependent behavior. But dont write programs that depend on
such behavior.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

3037


Cluster head selection in Wireless Sensor Network using C programming language.

3324


can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

2526


write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

2405


To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']

692






Sir... please give some important coding questions asked by product companies..

1991


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

3993


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

2084


create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00

6531


write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

4350


write a program for area of circumference of shapes

2194


What is full form of PEPSI

2097


How to palindrom string in c language?

9620


How can you relate the function with the structure? Explain with an appropriate example.

3094


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2311