void main()
{
while(1){
if(printf("%d",printf("%d")))
break;
else
continue;
}
}
Answer / susie
Answer :
Garbage values
Explanation:
The inner printf executes first to print some garbage value.
The printf returns no of characters printed and this value
also cannot be predicted. Still the outer printf prints
something and so returns a non-zero value. So it encounters
the break statement and comes out of the while statement.
| Is This Answer Correct ? | 21 Yes | 3 No |
How do you write a program which produces its own source code as its output?
write a c program to Create a registration form application by taking the details like username, address, phone number, email along with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 5 users and display the details. In place of password display “****”. (Use Structures).
0 Answers CDAC, College School Exams Tests,
Write a program that find and print how many odd numbers in a binary tree
main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }
struct Foo { char *pName; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); strcpy(obj->pName,"Your Name"); printf("%s", obj->pName); } a. Your Name b. compile error c. Name d. Runtime error
Given n nodes. Find the number of different structural binary trees that can be formed using the nodes.
16 Answers Aricent, Cisco, Directi, Qualcomm,
void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }
How do you sort a Linked List (singly connected) in O(n) please mail to pawan.10k@gmail.com if u can find an anser...i m desperate to knw...
6 Answers Microsoft, MSD, Oracle,
Cau u say the output....?
Display the time of the system and display the right time of the other country
how to delete an element in an array
Develop a routine to reflect an object about an arbitrarily selected plane