How do you initialize function pointers? Give an example?
Answer Posted / vadivel t
Sorry the above function pointer declaration should be like
this
(*pfunc)(int, int);
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a program in c to replace any vowel in a string with z?
Explain indirection?
Explain #pragma statements.
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
Can a pointer be static?
Write a program to reverse a string.
Is c language still used?
List a few unconditional control statement in c.
What is %s and %d in c?
What are pointers really good for, anyway?
What is the value of c?
What is #include called?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
Which is an example of a structural homology?