#include<stdio.h>
void main()
{
int a [5];
for (i=0; i<=4; i++)
printf(“%d” ,a[i]);
}
Answer Posted / 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 |
Post New Answer View All Answers
Explain how do you print an address?
What is bubble sort technique in c?
What are the different properties of variable number of arguments?
Write a program to swap two numbers without using a temporary variable?
Explain the process of converting a Tree into a Binary Tree.
Which is more efficient, a switch statement or an if else chain?
Why do we write return 0 in c?
what is reason of your company position's in india no. 1.
What is the difference between array and linked list in c?
When is a “switch” statement preferable over an “if” statement?
What do header files do?
Mention four important string handling functions in c languages .
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
Where does the name "C" come from, anyway?
How can I get the current date or time of day in a c program?