#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


Please Help Members By Posting Answers For Below Questions

Are pointers integers in c?

615


What is the use of sizeof () in c?

561


What is struct node in c?

624


Explain bitwise shift operators?

634


When should volatile modifier be used?

558






how to execute a program using if else condition and the output should enter number and the number is odd only...

1661


What is pointer to pointer in c with example?

554


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

636


How reliable are floating-point comparisons?

632


How to write a code for reverse of string without using string functions?

1583


what is the role you expect in software industry?

1660


What are multidimensional arrays?

656


What is hungarian notation? Is it worthwhile?

703


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?

580


Explain indirection?

650