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

Which is more efficient, a switch statement or an if else chain?

589


How arrays can be passed to a user defined function

585


How does struct work in c?

617


Why ca not I do something like this?

597


Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

1436






Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

3668


What are the 32 keywords in c?

643


How do you declare a variable that will hold string values?

678


FILE PROGRAMMING

1783


Explain what is a stream?

617


In C, What is the #line used for?

1083


application attempts to perform an operation?

1499


how to create duplicate link list using C???

2083


Explain how do you print an address?

670


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

1794