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

Compare array data type to pointer data type

603


Describe the modifier in c?

610


how can f be used for both float and double arguments in printf? Are not they different types?

612


Why void is used in c?

571


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

706






What is the size of enum in bytes?

594


Here is a neat trick for checking whether two strings are equal

568


Can i use “int” data type to store the value 32768? Why?

760


Do pointers need to be initialized?

571


please send me the code for multiplying sparse matrix using c

1731


What are type modifiers in c?

625


How we can insert comments in a c program?

636


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

621


Tell us two differences between new () and malloc ()?

617


List the different types of c tokens?

631