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
What is strcpy() function?
Why do we use int main instead of void main in c?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
What are the header files used in c language?
What is methods in c?
How do you convert strings to numbers in C?
What is structure in c explain with example?
What is boolean in c?
How can you allocate arrays or structures bigger than 64K?
Mention four important string handling functions in c languages .
FILE PROGRAMMING
Why static is used in c?
In c programming language, how many parameters can be passed to a function ?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
Write a c program to build a heap method using Pointer to function and pointer to structure ?