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

define c

6 Answers   HCL, TCS,


Write a program to know whether the input number is an armstrong number.

0 Answers   Wipro,


what is the c.

3 Answers   IBM, TCS,


#&#8206;include&#8236;<stdio.h> void main() { int i; for(i=5;0;i++) { printf("%d",i); } }

2 Answers   Facebook,


find second largest element in array w/o using sorting techniques? use onle one for loop.

15 Answers   BitWise, Zycus Infotech,


What is the role of this pointer?

0 Answers  


What are run-time errors?

0 Answers  


What is s in c?

0 Answers  


HOW CAN ADD OUR FUNCTION IN LIBRARY.

5 Answers  


what is bit rate & baud rate? plz give wave forms

0 Answers  


matrix multiplication fails introspect the causes for its failure and write down the possible reasons for its failurein c language.

5 Answers   TCS,


1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

1 Answers  


Categories