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 calloc malloc realloc in c?

1068


What is wrong with this initialization?

1018


What are nested functions in c?

1039


What is 1d array in c?

1106


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1385


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1260


What is the purpose of type declarations?

1125


What is echo in c programming?

1039


What are the properties of union in c?

1061


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1319


Why is it that not all header files are declared in every C program?

1235


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2816


How can I copy just a portion of a string?

1323


What are actual arguments?

1110


the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b

2690