how does a general function , that accepts an array as a
parameter, "knows" the size of the array ?
How should it define it parameters list ?
Answer Posted / ganesh bankar
its compilers job to identify what is the size the array
depending upon which array is passed to the function.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
int far *near * p; means
in linking some of os executables are linking name some of them
Which header file is used for clrscr?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is c preprocessor mean?
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
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
What are the string functions? List some string functions available in c.
Explain what is a pragma?
Why header file is used in c?
If errno contains a nonzero number, is there an error?
Can you write a programmer for FACTORIAL using recursion?
How can I make sure that my program is the only one accessing a file?