Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Which is best linux os?

972


Why c is known as a mother language?

1036


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

1646


What is strcmp in c?

1018


What is atoi and atof in c?

1028


How do you convert strings to numbers in C?

1167


What is C language ?

1902


What is non linear data structure in c?

967


What is sizeof in c?

955


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"

2033


Write programs for String Reversal & Palindrome check

1009


What is wild pointer in c?

1018


How can I recover the file name given an open stream?

946


Why we write conio h in c?

964


What is malloc return c?

976