Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / vikas upendra

The rest will be initialized to zero ....so it'll be 000 ..

Is This Answer Correct ?    25 Yes 4 No

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

Answer / 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

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

Answer / 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

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

Answer / bsn.teja

till array elements are not given any specific values,they
are supposed to contain garbage values.
here we initialised only 1st two elements of the array.
so output will be garbage values.

Is This Answer Correct ?    2 Yes 0 No

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

Answer / kantilal

000

Is This Answer Correct ?    5 Yes 4 No

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

Answer / guruprasad

first a[0]=23;
a[1]=67;
rest index are assigned 0 0 0.

Is This Answer Correct ?    1 Yes 0 No

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

Answer / ismail

garbage value

Is This Answer Correct ?    5 Yes 5 No

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

Answer / abhisheksingh462

000

Is This Answer Correct ?    0 Yes 0 No

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

Answer / honey

000 PRINTED

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More C Interview Questions

main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(ā€œ%dā€,x); }

8 Answers   Vector,


How can my program discover the complete pathname to the executable from which it was invoked?

0 Answers  


Write a program to compare two strings without using the strcmp() function

42 Answers   Accenture, Arba Minch University,


WHAT IS ABSTRACT DATA TYPE

4 Answers   Wipro,


Give a method to count the number of ones in a 32 bit number?

4 Answers  


write a program to generate 1st n fibonacci prime number

2 Answers  


What is c programing language?

0 Answers  


write a c program to find biggest of 3 number without relational operator?

12 Answers   TCS, Wipro,


where can function pointers be used?

2 Answers  


What is nested structure in c?

0 Answers  


how many times of error occur in C

11 Answers  


Write a program to add a given duration with time(24hrs format)

1 Answers   Protech,


Categories