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 use of integral promotions in c?

0 Answers  


What is the correct declaration of main?

0 Answers  


What are the string functions? List some string functions available in c.

0 Answers  


WHAT IS RTGS N MINIMUM AMT TO B TRANSFERD N WHAT R THE CHARGES ON MINIMUM AMT N IN WHICH BANK WE CAN DO IT?

1 Answers  


Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?

3 Answers   HCL, TCS,






Can a program have two main functions?

0 Answers  


Explain how do you list a file’s date and time?

0 Answers  


Describe newline escape sequence with a sample program?

0 Answers  


In the below code, how do you modify the value 'a' and print in the function. You'll be allowed to add code only inside the called function. main() { int a=5; function(); // no parameters should be passed } function() { /* add code here to modify the value of and print here */ }

1 Answers  


how to go with this?

1 Answers   Wipro,


A stack can be implemented only using array?if not what is used?

3 Answers   InterGlobal,


What is the difference between File pointer and Internal Charecter Pointer?

2 Answers   TATA,


Categories