main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}

what will be the output?
}

Answer Posted / lukz

4 is output

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

1669


What is the size of structure in c?

894


Do you know what are bitwise shift operators in c programming?

827


Write a program in c to replace any vowel in a string with z?

885


What are the advantages of Macro over function?

1609


Explain what are preprocessor directives?

817


What is the purpose of void in c?

797


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?

1028


How can I do serial ("comm") port I/O?

921


What is the general form of a C program?

782


What are different types of variables in c?

774


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures

2955


Explain what happens if you free a pointer twice?

819


What is huge pointer in c?

760


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

790