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 |
being a chemical engineer and with an aggregate of 80% why you opt for TCS and not your core industry?
What are local variables c?
Program to simulate second clock
how to make program without <> in libray.
Explain bit masking in c?
A B C D E F G F E D C B A A B C D E F F E D C B A A B C D E E D C B A A B C D D C B A A B C C B A A B B A A A
What are header files in c?
Write a program that accept anumber in words
how many error occurs in C language ?
What is actual argument?
how to write a bubble sort program without using temporary variable?
write a program to print the all 4digits numbers & whose squares must me even numbers?