Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
1 Commented Post
0 Endorsements
~4K People Reached
Favorite Tags
c x 14
c++ x 11
php x 2

15 Posted Topics

Member Avatar for dilip.mathews

i guess u can try some recursive algorithm for this .but with that 0(n) is still tough .. with recursive u can try maximum combinations while keeping efficiency ..

Member Avatar for omko
0
1K
Member Avatar for joshilay

hi ... i want to use php 4 and apache 2 on fedora core 4 ... butr not been able to use ... so can anyone tell me how to plugin php non apache on linux platform .... Ashish

Member Avatar for Anonymusius
0
87
Member Avatar for joshilay
Member Avatar for himanjim
0
173
Member Avatar for joshilay

hi .. can anyone help me to understand what are the uses of different OOPS concepts of c++ and how thse features helps in programming in c++ ... specailly features like data abstraction etc ...

Member Avatar for ~s.o.s~
-1
70
Member Avatar for joshilay
Member Avatar for Dave Sinkula
0
603
Member Avatar for joshilay

int i=0,j=1; cout<<(j++)&&(i++); //output=1; i=0,j=1; printf("%d",(j++)&&(i++)); //output=0 can anyone please tell why this difference in output ???

Member Avatar for ~s.o.s~
0
92
Member Avatar for joshilay

char s[]="the cocaine man"; int i=0; char ch; ch=s[++i]; printf("%c ",ch); ch=s[i++]; printf("%c ",ch); ch=i++[s]; printf("%c ",ch); ch=++i[s]; printf("%c ",ch); output = h h e ! i got the outputs like this ...can anyone please what are the reasons for these outputs !! is it compiler dependent ?? if yes …

Member Avatar for ~s.o.s~
0
143
Member Avatar for joshilay

if i implement same algorithm iteratively and also with recusrion ...than which of the above methods is better in implementing ..... and what are the advantages of recursion over iterative methods ??

Member Avatar for joshilay
0
153
Member Avatar for joshilay

can anyone tell me what are pointers to function ??? and how are they implemented ??

Member Avatar for Laiq Ahmed
0
115
Member Avatar for joshilay

given a positive integer n ,we have to find the number of possible combination of integers (i,j) where i+j=k ... given 0<=i,j,k<=n i code this problem as below ... [code]#include<iostream.h> #include<conio.h> void max(int n,int x,int k,int *no) { if(x>=0) { max(n,x-1,k,no); if(n+x==k) { (*no)+=1; cout<<"\n"<<" The combinations are formed by …

Member Avatar for joshilay
0
101
Member Avatar for joshilay

can anyone tell me the code for inorder traversal of binary tree non recursively and using a constant memory ...??

Member Avatar for Laiq Ahmed
0
168
Member Avatar for joshilay

can anyone explain me why the values are not swapped in the below code ?? main() { int *i,*j; *i=4000; *j=9000; f(i,j); printf(" %d %d",*i,*j); //output =4000 9000 } void f( int *a, int *b) { int *temp; temp=a; a=b; b=temp; }

Member Avatar for Salem
0
276
Member Avatar for TJW

[quote=TJW]Why is the last element not 7 [code] int array[3]; int *ary; ary=array; array[0]=0; array[1]=0; array[2]=0; array[3]=44; for (int i=0;i<4;i++) { cout<<array[i]; } cout<<endl; *(ary+0)=1; *(ary+1)=0; *(ary+2)=0; *(ary+3)=7; for (int i=0;i<4;i++) { cout<<array[i]; } cout<<endl; [/code] Output 00044 1003<-----------------Why 3 and not 7!!!!!![/quote] hey ..d ans is very simple d …

Member Avatar for Dave Sinkula
0
193
Member Avatar for joshilay

can anyone please tell me why following output is generated ... int i=10; printf(" %d ",i++/i); // output=0 i=10; printf("%d",i/++i); //output=1 i=10; printf("%d ",i++/++i); //output =0 i=10; printf("%d",++i/i); //output=1

Member Avatar for joshilay
0
193
Member Avatar for joshilay

hi .. if anyone cn plz tell me wht will be the output of following code n how dis output is generated ... float i=10; printf("i++/i %f\n",i++/i); printf("%f \n",i); i=10; printf("i/++i %f \n",i/++i); printf("%f \n",i); i=10; printf("i++/++i %f \n",i++/++i); printf("%f \n",i); i=10; printf("++i/i %f \n",++i/i); printf("%f \n",i);

Member Avatar for joshilay
0
92

The End.