main()
{
unsigned int i=10;
while(i-->=0)
printf("%u ",i);
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
10 9 8 7 6 5 4 3 2 1 0 65535 65534…..
Explanation:
Since i is an unsigned integer it can never become negative.
So the expression i-- >=0 will always be true, leading to
an infinite loop.
| Is This Answer Correct ? | 25 Yes | 5 No |
void main() { int i=5; printf("%d",i++ + ++i); }
main() { struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }
What is the hidden bug with the following statement? assert(val++ != 0);
write a program in c language to get the value of arroy keys pressed and display the message which arrow key is pressed?
hello sir,is there any function in C that can calculate number of digits in an int type variable,suppose:int a=123; 3 digits in a.what ll b answer?
Sir... please give some important coding questions asked by product companies..
main() { int c=- -2; printf("c=%d",c); }
Write a program to receive an integer and find its octal equivalent?
struct Foo { char *pName; char *pAddress; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); obj->pName = malloc(100); obj->pAddress = malloc(100); strcpy(obj->pName,"Your Name"); strcpy(obj->pAddress, "Your Address"); free(obj); printf("%s", obj->pName); printf("%s", obj->pAddress); } a. Your Name, Your Address b. Your Address, Your Address c. Your Name Your Name d. None of the above
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
what is brs test reply me email me kashifabbas514@gmail.com
C statement to copy a string without using loop and library function..