#include<stdio.h>
void main()
{
int a [5];
for (i=0; i<=4; i++)
printf(ā%dā ,a[i]);
}
Answers were Sorted based on User's Feedback
Answer / kalyan chukka
Here it shows i is undefined Symbol.So if declare i as
integer then it prints some garbage value Because Array is
declared but elements are not inserted into the array.So
garbage value is printed on the console
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / sameer mohammed
It shows us garbage values as because the integer type
array is declared but it is not defined.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / jayakrishna
here array a is declared but it is not initialised,but int
the printf we are printing values of array a[], so it
displays garbage values & cannot directly write i as
variable we must specify its type.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / purnima
it gives compile time error because here the var i is not
declared .aIn c a var must be declared before is usage
| Is This Answer Correct ? | 0 Yes | 1 No |
Can we write a program without main() function?
C program to read the integer and calculate sum and average using single dimensional array
How can this be legal c?
write a program to find a given no. is divisible by 3 or not without using any arthimetic operators?
A array contains dissimilar element how can we count, and A array contains dissimilar element how can we store in another array with out repetition.
Explain how many levels deep can include files be nested?
HOW TO HANDLE EXCEPTIONS IN C
How we can write a value to an address using macro..?
What is data type long in c?
Find the highest of three numbers and print them using ascending orders?
what is available in C language but not in C++?
10 Answers CTS, TCS,
int a=0,b=2; if (a=0) b=0; else b=*10; What is the value of b ?