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

How many main () function we can have in a project?

1078


What is the correct declaration of main?

1177


What Is The Difference Between Null And Void Pointer?

1189


What are the main characteristics of c language describe the structure of ac program?

1171


Write a program to print all permutations of a given string.

1151


What is preprocessor with example?

1016


What is linear search?

1100


Why is void main used?

1051


Explain is it valid to address one element beyond the end of an array?

1170


What is the maximum no. of arguments that can be given in a command line in C.?

1106


What is unsigned int in c?

956


What is use of null pointer in c?

980


Explain which function in c can be used to append a string to another string?

1057


Explain the use of bit fieild.

1109


Explain the use of keyword 'register' with respect to variables.

988