main()
{
int arr[5]={23,67};
printf("%d%d%d",arr[2],arr[3],arr[4]);
}
Answers were Sorted based on User's Feedback
Answer / vikas upendra
The rest will be initialized to zero ....so it'll be 000 ..
| Is This Answer Correct ? | 25 Yes | 4 No |
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 |
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 |
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 |
first a[0]=23;
a[1]=67;
rest index are assigned 0 0 0.
| Is This Answer Correct ? | 1 Yes | 0 No |
#include <stdio.h> #define sqr(x) (x*x) int main() { int x=2; printf("value of x=%d",sqr(x+1)); } What is the value of x?
16 Answers Accel Frontline, Opera, Oracle,
What does double pointer mean in c?
Why do we use & in c?
Explain the use of bit fieild.
what is the definition of storage classes?
Is c procedural or object oriented?
how to execute with out main in cprogram
what type of questions arrive in interview over c programming?
Method Overloading exist in c ?
Print all the palindrome numbers.If a number is not palindrome make it one by attaching the reverse to it. eg:123 output:123321 (or) 12321
What is a nested formula?
program to find which character is occured more times in a string and how many times it has occured? for example in the sentence "i love india" the output should be i & 3.