main()
{
int arr[5]={23,67};
printf("%d%d%d",arr[2],arr[3],arr[4]);
}

Answer Posted / vignesh1988i

all wil print the garbage values in the respected
memories... since we only initilized for two locations in
th array.... so other locations in the array wil have
garbage values

Is This Answer Correct ?    13 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does c in a circle mean?

568


What are the 5 data types?

587


Explain the meaning of keyword 'extern' in a function declaration.

707


Why is structure padding done in c?

635


How do I get an accurate error status return from system on ms-dos?

637






Why is event driven programming or procedural programming, better within specific scenario?

1943


Why pointers are used?

627


What is the right way to use errno?

610


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

646


code for replace tabs with equivalent number of blanks

1629


Why do we use c for the speed of light?

598


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

660


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

599


Is multithreading possible in c?

557


How do I round numbers?

588