Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf(&q..

Answer / anu

Error
since s is not declared

Is This Answer Correct ?    7 Yes 0 No

main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf(&q..

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

main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf(&q..

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

main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf(&q..

Answer / devendra kumar gupta

S is not define
there variable not declare error is occur

Is This Answer Correct ?    0 Yes 0 No

main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf(&q..

Answer / jack

-14

Is This Answer Correct ?    2 Yes 7 No

main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf(&q..

Answer / sravan

s=10

Is This Answer Correct ?    3 Yes 9 No

Post New Answer

More C Interview Questions

Write a C program to find the smallest of three integers, without using any of the comparision operators.

7 Answers   TCS,


In which area global, external variables are stored?

3 Answers  


What is difference between union All statement and Union?

0 Answers  


what is different between auto and local static? why should we use local static?

0 Answers  


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

1 Answers  


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..

1 Answers  


Efficient data structure for store/search list of 1000 records a)array b)double linked list c)circular queue d)hash table

3 Answers   Value Labs,


what is the stackpointer

2 Answers  


What are pointers really good for, anyway?

0 Answers  


write a c program to print "Welcome" without using semicolon in the whole program ??

15 Answers   Infosys, TCS,


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.

4 Answers  


What is fflush() function?

0 Answers  


Categories