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 difference between structural,object based,object orientd programming languages?

1 Answers   PanTerra,


if p is a string contained in a string?

0 Answers  


Why we use stdio h in c?

0 Answers  


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

0 Answers  


write a program for odd numbers?

15 Answers  






How can I find the day of the week given the date?

0 Answers  


difference between native and cross compilers

0 Answers  


1)what are limitations for recursive function? 2)write a program to read a text file and count the number of characters in the text file

1 Answers  


write a addition of two no. program with out using printf,scanf,puts .

4 Answers  


how logic is used

0 Answers  


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

0 Answers   RBI,


who is the father of C Language?

20 Answers   CTS, UST,


Categories