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
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)
What is 02d in c?
What is a shell structure examples?
what type of questions arrive in interview over c programming?
Which is the best website to learn c programming?
How can I determine whether a machines byte order is big-endian or little-endian?
Is calloc better than malloc?
Explain what will the preprocessor do for a program?
Why should I use standard library functions instead of writing my own?
What is ## preprocessor operator in c?
How many header files are in c?
What is fflush() function?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
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.
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?