main()
{
int i,n=010;
int sum=0;
for(i=1;i<=n;i++)
{s=s+i;
}
printf("%d",&s);
getch();
}
Answers were Sorted based on User's Feedback
Answer / codingfreak
In the above question for
printf("%d",&s);
It prints the address location of variable s
printf("%d",s);
Prints the value 36.
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / rupesh d. patil
Error
undefined symbol 's' in function main()
Warning
'sum' is assigned a value that is never used in function main
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / devendra kumar gupta
S is not define
there variable not declare error is occur
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a C program to find the smallest of three integers, without using any of the comparision operators.
In which area global, external variables are stored?
What is difference between union All statement and Union?
what is different between auto and local static? why should we use local static?
Write a code to reverse string seperated by spaces i/p str=India is my country o/p str=aidnI si ym yrtnuoc After writing code, optimize the code
a number is perfect if it is equal to the sum of its proper divisor.. 6 is perfect number coz its proper divisors are 1,2 and three.. and 1+2+3=6... a number is deficient if the sum of its proper divisor is less than the number.. sample: 8 is deficient, coz its proper divisors are 1,2 and 4, and 1+2+4=7. abundant number, if the sum of its proper divisor is greater than the number.. sample..12 is abundant coz 1+2+3+4+6=16 which is geater than 12. now write a program that prompts the user for a number, then determines whether the number is perfect,deficient and abundant..
Efficient data structure for store/search list of 1000 records a)array b)double linked list c)circular queue d)hash table
what is the stackpointer
What are pointers really good for, anyway?
write a c program to print "Welcome" without using semicolon in the whole program ??
Hi Every one......... Please Any body give me the answer for my question. Is it possible to print the word "PRINT F", without using printf() statement in C-Language.
What is fflush() function?