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

In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

2176


What is 02d in c?

1112


What is a shell structure examples?

1154


what type of questions arrive in interview over c programming?

2085


Which is the best website to learn c programming?

1136


How can I determine whether a machines byte order is big-endian or little-endian?

1124


Is calloc better than malloc?

1076


Explain what will the preprocessor do for a program?

1113


Why should I use standard library functions instead of writing my own?

1318


What is ## preprocessor operator in c?

1134


How many header files are in c?

1067


What is fflush() function?

1191


a value that does not change during program execution a) variabe b) argument c) parameter d) none

1292


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2696


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1266