Thursday, October 9, 2014
Tuesday, April 1, 2014
Centralysed Councelling for Gate-2014
The centralized counselling for M.tech/M.plan based on GATE-2014 will start from 3 rd week of April-2014 .Website is currently offline . www.ccmt.in
click here to download the advertisement.
click here to download the advertisement.
Cutoff Marks for GATE 2014 CSE Branch
General Category (Open category)OC : 25
OBC(Other Backward Classes): 22.50
SC(Scheduled Castes) /ST(Scheduled Tribes) : 16.67
And Physically Disabled
OBC(Other Backward Classes): 22.50
SC(Scheduled Castes) /ST(Scheduled Tribes) : 16.67
And Physically Disabled
Tuesday, January 28, 2014
Ackerman Function
#include<stdio.h>
int ack(int m,int n)
{ if(m==0)
return n+1; else if (n==0)
return ack(m-1,1); else
return ack(m-1,ack(m,n-1));
}
void main()
{ int a=2,b=6;
int d=ack(a,b);
printf("%d",d);
}
OUTPUT:15
Wednesday, January 22, 2014
Pointer to Structure
1.
main()
{
struct s1
{
char *z;
int i;
struct s1 * p;
};
struct s1 a[] = { {"NAGPUR" , 1 , a+1 } ,
{"RAIPUR" , 2 , a+2 } ,
{"KANPUR" , 3 , a }
};
struct s1 * ptr = a ;
1. printf (" %s %s %s " , a[0].z , ptr->z , a[2].p->z ) ;
2. printf (" %s ", ++ptr->z) ;
3. printf ( "%s " , a[( ++ptr ) -> i ].z ) ;
4. printf ("% s" , a[--( ptr->p->i ).z ] ) ;
}
main()
{
struct s1
{
char *z;
int i;
struct s1 * p;
};
struct s1 a[] = { {"NAGPUR" , 1 , a+1 } ,
{"RAIPUR" , 2 , a+2 } ,
{"KANPUR" , 3 , a }
};
struct s1 * ptr = a ;
1. printf (" %s %s %s " , a[0].z , ptr->z , a[2].p->z ) ;
2. printf (" %s ", ++ptr->z) ;
3. printf ( "%s " , a[( ++ptr ) -> i ].z ) ;
4. printf ("% s" , a[--( ptr->p->i ).z ] ) ;
}
OUTPUT IS : 1. NAGPUR NAGPUR NAGPUR
2. AGPUR
3. KANPUR
4. KANPUR
OBSERVATIONS : ptr->z has higher precedence than ++ptr
Subscribe to:
Comments (Atom)