Data Structures

DFS :: BINARY

/*************************************************************************** ROLL NO : 93 CLASS : SYBCA SUBJECT : DFS DIVISION : II PROGRAM : BINARY SEARCH ***************************************************************************/ # […]

Share

DFS :: STRING

#include<stdio.h> #include<conio.h> void main() { char a[10]; int i,j,x=0,m,t; clrscr(); printf(“Enter the name: “); scanf(“%s”,a); //0 1 2 a[3] //x […]

Share

DFS :: POWER

#include<stdio.h> #include<conio.h> main() { int a,b,c,i; clrscr(); c=1; printf(“Enter the value:”); scanf(“%d”,&a); printf(“Enter the power”); scanf(“%d”,&b); for (i=1;i<=b;i++) { c=c*a; […]

Share

DFS :: POINTER

#include<stdio.h> #include<conio.h> void main() { int a,*b,**c; clrscr(); a=5; b=&a; c=&b; printf(“a :%u\n”,a); printf(“&a :%u\n”,&a); printf(“b :%u\n”,b); printf(“&b :%u\n”,&b); printf(“*b […]

Share

DFS :: OPERATOR

#include<iostream.h> #include<conio.h> class add { int a,b,c,d; public: getdata(); operator ++(); friend operator +(add obj,add ob); }; add :: getdata() […]

Share

DFS :: MULTIPLY

#include<stdio.h> #include<conio.h> //() <- parenthesis //{ } <- braces //[ ] <- brackets main() { int a,b,c; clrscr(); printf(“Enter a […]

Share