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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are type modifiers in c?

833


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

5242


Why c is called procedure oriented language?

825


Differentiate between full, complete & perfect binary trees.

888


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

914


Are there any problems with performing mathematical operations on different variable types?

830


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

811


What does sizeof int return?

862


What is the total generic pointer type?

939


Do pointers need to be initialized?

837


write a program to print largest number of each row of a 2D array

2117


ATM machine and railway reservation class/object diagram

5031


For what purpose null pointer used?

838


What are the 4 types of unions?

824


Write a function that will take in a phone number and output all possible alphabetical combinations

840