main()
{
int i=0;
while(+(+i--)!=0)
i-=i++;
printf(i);
}
Answer Posted / vinod
Error.... Cannot convert int to char error at printf(i). If they replaced printf(i) to printf("%d",i) then it would be -1.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
main() { printf("hello"); fork(); }
What is the size of a union variable?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
What are the header files used in c language?
What is #define size in c?
Is there anything like an ifdef for typedefs?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
How many data structures are there in c?
When c language was developed?
how to execute a program using if else condition and the output should enter number and the number is odd only...
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
write a c program for swapping two strings using pointer