Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

#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

What is getch () for?

1316


Explain what is page thrashing?

1160


What is the meaning of && in c?

1085


What is the argument of a function in c?

1101


Describe the steps to insert data into a singly linked list.

1118


What is realloc in c?

1166


Is javascript based on c?

1116


what is the basis for selection of arrays or pointers as data structure in a program

4343


What is a char c?

1089


What is the purpose of void in c?

1108


List some basic data types in c?

1082


Is this program statement valid? INT = 10.50;

1230


Explain the use of 'auto' keyword

1171


Are c and c++ the same?

1103


Can you define which header file to include at compile time?

1070