#include<stdio.h>
void main()
{
int a [5];
for (i=0; i<=4; i++)
printf(“%d” ,a[i]);
}
Answer Posted / tanvi jain
as i is not yet declared,so give an error.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Disadvantages of C language.
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
Why shouldn’t I start variable names with underscores?
What is pointer and structure in c?
Explain the array representation of a binary tree in C.
What are identifiers in c?
You have given 2 array. You need to find whether they will
create the same BST or not.
For example:
Array1:10 5 20 15 30
Array2:10 20 15 30 5
Result: True
Array1:10 5 20 15 30
Array2:10 15 20 30 5
Result: False
One Approach is Pretty Clear by creating BST O(nlogn) then
checking two tree for identical O(N) overall O(nlogn) ..we
need there exist O(N) Time & O(1) Space also without extra
space .Algorithm ??
DevoCoder
guest
Posted 3 months ago #
#define true 1
#define false 0
int check(int a1[],int a2[],int n1,int n2)
{
int i;
//n1 size of array a1[] and n2 size of a2[]
if(n1!=n2) return false;
//n1 and n2 must be same
for(i=0;i
What is the difference between if else and switchstatement
Where can I get an ansi-compatible lint?
What is character constants?
Explain zero based addressing.
What is typedef example?
What is dynamic memory allocation?
Can a file other than a .h file be included with #include?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above