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 / 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 |
Post New Answer View All Answers
What is quick sort in c?
int i=10; printf("%d %d %d", i, i=20, i);
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What is the difference between array and pointer?
Can a file other than a .h file be included with #include?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
What is string length in c?
What is const volatile variable in c?
Explain what is a program flowchart and explain how does it help in writing a program?
What is the Purpose of 'extern' keyword in a function declaration?
What are the features of c language?
What is NULL pointer?
What are the advantages and disadvantages of c language?
What is difference between constant pointer and constant variable?
Can you please compare array with pointer?