True or false: If you continuously increment a variable, it
will become negative?
1) True
2) False
3) It depends on the variable type
Answer Posted / 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 |
Post New Answer View All Answers
Which is best linux os?
Why c is known as a mother language?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
What is strcmp in c?
What is atoi and atof in c?
How do you convert strings to numbers in C?
What is C language ?
What is non linear data structure in c?
What is sizeof in c?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
Write programs for String Reversal & Palindrome check
What is wild pointer in c?
How can I recover the file name given an open stream?
Why we write conio h in c?
What is malloc return c?