#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
Are pointers integers in c?
What is the use of sizeof () in c?
What is struct node in c?
Explain bitwise shift operators?
When should volatile modifier be used?
how to execute a program using if else condition and the output should enter number and the number is odd only...
What is pointer to pointer in c with example?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
How reliable are floating-point comparisons?
How to write a code for reverse of string without using string functions?
what is the role you expect in software industry?
What are multidimensional arrays?
What is hungarian notation? Is it worthwhile?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
Explain indirection?