#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
Explain the bubble sort algorithm.
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
Explain what is wrong in this statement?
Can 'this' pointer by used in the constructor?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
Is c procedural or functional?
can any one tel me wt is the question pattern for NIC exam
Why we write conio h in c?
Should I learn data structures in c or python?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
Does free set pointer to null?
Differentiate between declaring a variable and defining a variable?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
given post order,in order construct the corresponding binary tree