#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
Define circular linked list.
What are multidimensional arrays?
What does c mean?
Describe explain how arrays can be passed to a user defined function
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
What are the __date__ and __time__ preprocessor commands?
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
Is c a great language, or what?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
How do you redirect a standard stream?
What is the heap?
What is the use of linkage in c language?
Do you know the difference between malloc() and calloc() function?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?