True or false: If you continuously increment a variable, it
will become negative?




1) True


2) False


3) It depends on the variable type

Answers were Sorted based on User's Feedback



True or false: If you continuously increment a variable, it will become negative? 1) Tru..

Answer / k sriharsha

It will not become negative if we use unsign data type.

Is This Answer Correct ?    19 Yes 3 No

True or false: If you continuously increment a variable, it will become negative? 1) Tru..

Answer / a programmer

It depends upon the variable type. Ex: if the variable is
declared as unsigned int then if we increment the value will
not become negative.

Is This Answer Correct ?    10 Yes 2 No

True or false: If you continuously increment a variable, it will become negative? 1) Tru..

Answer / sachin

after a limit of the variable ,it becomes -ve.
for ex:-
#include<stdio.h>
void main()
int i;
if(i<=32767)
{
printf("%d",i);
i++;
}
}after printing 1 to 32767,it tries to become 32768 which is
outside the limit,so it goes to the other side and become
-32768 and loops become indefinite.

Is This Answer Correct ?    3 Yes 0 No

True or false: If you continuously increment a variable, it will become negative? 1) Tru..

Answer / sneha

it depends on the variable type

Is This Answer Correct ?    2 Yes 0 No

True or false: If you continuously increment a variable, it will become negative? 1) Tru..

Answer / hussain reddy

3

Is This Answer Correct ?    1 Yes 0 No

True or false: If you continuously increment a variable, it will become negative? 1) Tru..

Answer / ruchi

True

Is This Answer Correct ?    1 Yes 1 No

True or false: If you continuously increment a variable, it will become negative? 1) Tru..

Answer / k.kavitha

2) false

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More C Interview Questions

What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value

3 Answers   Accenture, Wipro,


What are register variables? What are the advantage of using register variables?

0 Answers   TISL,


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

0 Answers  


How can a string be converted to a number?

0 Answers  


write a string copy function routine?

2 Answers  






what is the difference between procedure oriented and object oriented progaming language

1 Answers  


WAP to find that given no is small or capital

3 Answers  


write an algorithm to display a square matrix.

0 Answers  


What is the most efficient way to store flag values?

0 Answers  


What is the difference function call by value & function call by reference?

6 Answers  


write a program to find the largest and second largest integer from an array

2 Answers   Value Labs,


What is difference between stdio h and conio h?

0 Answers  


Categories