Why doesn't the code "a[i] = i++;" work?

Answer Posted / vignesh1988i

this line will work.... first the value of i will be in the array and then i will get incremented

Is This Answer Correct ?    11 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2745


What is meant by errors and debugging?

649


What does the error message "DGROUP exceeds 64K" mean?

728


How can I find out the size of a file, prior to reading it in?

622


What does it mean when a pointer is used in an if statement?

602






a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

646


What is an auto keyword in c?

644


What are types of preprocessor in c?

621


Explain what is the benefit of using enum to declare a constant?

589


`write a program to display the recomended action depends on a color of trafic light using nested if statments

1634


What is double pointer in c?

590


Is it possible to initialize a variable at the time it was declared?

757


Is c easy to learn?

562


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

769


Explain the difference between call by value and call by reference in c language?

648