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

What is RAM memory? and What is ROM?Who designed one is temparary and another is permanent?why they designed like that?By using far pointer which type data(whether hexadecimal)we can access?

1 Answers   Excel,


how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?

2 Answers   Patni, TCS,


What does the message "automatic aggregate intialization is an ansi feature" mean?

0 Answers  


write a c program to accept a given integer value and print its value in words

4 Answers   Vernalis, Vernalis Systems,


how to convert binary to decimal and decimal to binary in C lanaguage

7 Answers   BPO, Far East Promotions, IBM, RBS,


What are header files in c?

0 Answers  


What is getch() function?

0 Answers  


A marketing company wishes to construct a decision table to decide how to treat clients according to three characteristics: Gender, City Dweller, and age group: A (under 30), B (between 30 and 60), C (over 60). The company has four products (W, X, Y and Z) to test market. Product W will appeal to female city dwellers. Product X will appeal to young females. Product Y will appeal to Male middle aged shoppers who do not live in cities. Product Z will appeal to all but older females.

2 Answers  


What is the right type to use for boolean values in c? Is there a standard type?

0 Answers  


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

0 Answers   Aspire, Infogain,


accept character from keyboard untill the user presses the enter key.If the user enters any character other than upper case(A-Z)alphabets program should stop taking any input

1 Answers  


Why c is procedure oriented?

0 Answers  


Categories