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 = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}

what will be the output?
}

Answer Posted / mortal

num[i] is num[1] and its reassigned as i++ that is 1 thus it
will print 1.
but im not at all sure about this..

Is This Answer Correct ?    2 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a example of a variable?

1063


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2466


Give the rules for variable declaration?

1218


How can you be sure that a program follows the ANSI C standard?

1656


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1328


write a progrmm in c language take user interface generate table using for loop?

2101


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

1084


What does void main () mean?

1297


What is return type in c?

1189


What are the difference between a free-standing and a hosted environment?

1342


Explain what does the format %10.2 mean when included in a printf statement?

1412


Explain how do you view the path?

1222


How can you allocate arrays or structures bigger than 64K?

1200


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1205


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1107