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

Answer Posted / jaga

in linux it will give garbage values...
in unix it will give 000(automatically initialized to 0)

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between array_name and &array_name?

994


What is a sequential access file?

872


What is spark map function?

808


How do I convert a string to all upper or lower case?

875


How do we declare variables in c?

794


Why is it important to memset a variable, immediately after allocating memory to it ?

1778


What is a program?

917


Describe how arrays can be passed to a user defined function

1016


write a c program to calculate sum of digits till it reduces to a single digit using recursion

2999


Differentiate abs() function from fabs() function.

788


What is wrong with this program statement? void = 10;

1029


what do you mean by inline function in C?

835


What are the rules for the identifier?

889


How will you divide two numbers in a MACRO?

913


What is the method to save data in stack data structure type?

859