#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 |
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
write the program for prime numbers?
73 Answers Accenture, Aptech, Infosys, TCS,
You have an array of n integers, randomly ordered with value 1 to n-1.The array is such that there is only one and one value occurred twice. How will you find this number?
What is a sequential access file?
write a program to create a sparse matrix using dynamic memory allocation.
How can I find out the size of a file, prior to reading it in?
Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks.
Write a program to find given number is even or odd without using any control statement.
Write a C program that reads a series of strings and prints only those ending in "ed"
What is array in C
What is a char c?
What is the advantage of using #define to declare a constant?
0 Answers Agilent, ZS Associates,