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 / kalyan chukka

Here it shows i is undefined Symbol.So if declare i as
integer then it prints some garbage value Because Array is
declared but elements are not inserted into the array.So
garbage value is printed on the console

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the Program to reverse a string using pointers.

966


Write the control statements in C language

1125


Explain what is the general form of a c program?

1022


Who is the main contributor in designing the c language after dennis ritchie?

950


What is the significance of an algorithm to C programming?

993


What's the total generic pointer type?

1006


How to draw the flowchart for structure programs?

9246


write a program to create a sparse matrix using dynamic memory allocation.

4831


What are enumerated types?

1099


Define the scope of static variables.

1060


How do you sort filenames in a directory?

1122


What is an identifier?

977


Write a program with dynamically allocation of variable.

1065


What is the size of structure in c?

1092


What is wrong with this code?

1125