main()
{
int i=0;
while(+(+i--)!=0)
i-=i++;
printf(i);
}
Answers were Sorted based on User's Feedback
Answer / 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 |
Can we increase size of array in c?
When should a type cast not be used?
What are dangling pointers?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
What are runtime error?
without a terminator how can we print a message in a printf () function.
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
What is the purpose of & in scanf?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is scope rule of function in c?
What is volatile variable in c with example?