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

Explain how do you print an address?

1084


What is bubble sort technique in c?

931


What are the different properties of variable number of arguments?

1100


Write a program to swap two numbers without using a temporary variable?

1068


Explain the process of converting a Tree into a Binary Tree.

2607


Which is more efficient, a switch statement or an if else chain?

966


Why do we write return 0 in c?

1003


what is reason of your company position's in india no. 1.

2223


What is the difference between array and linked list in c?

1079


When is a “switch” statement preferable over an “if” statement?

1068


What do header files do?

1010


Mention four important string handling functions in c languages .

1048


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

1015


Where does the name "C" come from, anyway?

1074


How can I get the current date or time of day in a c program?

1164