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 |
What header files do I need in order to define the standard library functions I use?
why ordinary variable store the later value not the initial
explain memory layout of a C program
Write a program to reverse a given number in c?
what is the function of pragma directive in c?
What are the types of type specifiers?
how to use enum datatype?Please explain me?
How to run c Program without using IDE of c. means if program made in notepad.then how to compile by command prompt.
input any 4 digit number and find the difference of all the digits?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
main() { int age; float ht; printf("Enter height and age"); scanf("%d%d",&height,&age); if((age<=20)&&(ht>=5)) {printf("She loves you");} else {printf("She loves you");} }
What is your stream meaning?