OUTPUT: Enter a Number: 145 Sum of Digits of Number: 10
Start reading C Program for Sum of Digits of a NumberCategory: Programs
OUTPUT: Enter a Number to perform Sum : 258 Sum of Digits of Given Number is: 15
Start reading C Program for Sum of Digits of a Number using RecursionOUTPUT: Enter the Radius of a Circle : 2 Area of Circle is: 12.560000
Start reading C Program to find Area of a CircleArea of a rectangle can be calculated using length * breadth OUTPUT: Enter the Length of Rectangle : 3.2 Enter the Breadth of Rectangle : 4 Area of Rectangle : 12.800000
Start reading C Program to Find Area of RectangleOUTPUT: Enter the Length of Side : 4 Area of Square : 16.000000
Start reading C Program to Find Area of a SquareOUTPUT: Enter Three Values : 10 5 36 36 is Greatest Number
Start reading C Program to Find Biggest among Three Numbersint main(){int a=40,b=60,c;c=add(&a,&b);printf(“The Sum is: %d”,c);return 0;}add(int *x,int *y){int z;z=x+y;return(z);}OUTPUT:The Sum is: 100
Start reading C Program Example for Call By Referenceint main(){int a[5]= {5,4,6,8,9};int *p=&a[0];int i; }OUTPUTArray[0] is 5Array[1] is 4Array[2] is 6Array[3] is 8Array[4] is 95 at 26867084 at 26867126 at 26867168 at 26867209 at 2686724
Start reading C Program to Print Elements of Array Using Pointersmain(){int x=65;char a=’a’;float p=6.5,q=9.12;//clrscr(); }OUTPUT: a is Stored at Address 268674765 is Stored at Address 26867486.500000 is Stored at Address 26867409.120000 is Stored at Address 2686736
Start reading C Program to Print Addresses of Variablesvoid main(){int n,r,i,j,k,p,u=0,s=0,m;int block[10],run[10],active[10],newreq[10];int max[10][10],resalloc[10][10],resreq[10][10];int totalloc[10],totext[10],simalloc[10];//clrscr();printf(“Enter the no of processes:”);scanf(“%d”,&n);printf(“Enter the no ofresource classes:”);scanf(“%d”,&r);printf(“Enter the total existed resource in each class:”);for(k=1; k<=r; k++)scanf(“%d”,&totext[k]);printf(“Enter the allocated resources:”);for(i=1; i<=n; i++)for(k=1; k<=r; k++)scanf(“%d”,&resalloc);printf(“Enter the process making the new request:”);scanf(“%d”,&p);printf(“Enter the requested resource:”);for(k=1; k<=r; k++)scanf(“%d”,&newreq[k]);printf(“Enter the process which are n blocked or running:”);for(i=1; i<=n; i++){if(i!=p){printf(“process %d:\n”,i+1);scanf(“%d%d”,&block[i],&run[i]);}}block[p]=0;run[p]=0;for(k=1; k<=r; k++){ }OUTPUT:Enter …
Start reading Simulate Bankers Algorithm for Deadlock Avoidance Using C