jituTechnology

jituTechnology

C Programming

A program to print the direct and indirect address and its content using “address of operator” and “indirection operator

A program to print the direct and indirect address and its content using “address of operator” and “indirection operator”. Codes /*A program to print the direct and indirect address and its content*/ /*Programed by          Jitendra Kr Yadav                         10116                         2 Apr,2011*/ #include<stdio.h> #include<conio.h> main() { int x; int *pt; printf(“Enter the number: “); scanf(“%d”,&x); […]

read more

Write a program to sort the data in ascending and descending order using selection sort.

/*program to sort the data in  ascending order using selection sort. Programmed by :Jitendra Kumar Yadav roll ni.: 10116 programmed on.: 21st mar,2011*/ #include <stdio.h> #include <conio.h> void main() { int i,j,temp; int arr[10]={2,1,6,5,8,4,9,7,10,3}; for (i=0;i<9;i++) { for (j=i+1;j<9;j++) { if(arr[i]>arr[j])//for descending change > to < { temp = arr[i]; arr[i] = arr[j]; arr[j] = […]

read more

The Sin of X can be calculated approximately by using the first n terms of the infinite series

The Sin of X can be calculated approximately by using the first n terms of the infinite series( X is expressed in radians, /*program to find sine of x can be calculated approximately by using the firstn terms of the infinite series. Programmed by : kiran shrestha roll no. : 10121 Programmed on : 6th […]

read more

A program to find the smallest element in an array using pointer.

A program to find the smallest element in an array using pointer. Codes /*A program to find the smallest element in an array using pointer*/ /*Programed by          Jitendra Kr Yadav                         10116                         2Apr,2011*/ #include<stdio.h> #include<conio.h> void smallest(int, int*); main() { intn,a[20]; printf(“Enter the no of input to be taken:”); scanf(“%d”,&n); printf(“Enter the input:\n”); for(int […]

read more

A program to sort the data in ascending order using separate function to read, sort and display.

A program to sort the data in ascending order using separate function to read, sort and display. Codes /*A program to sort the data in ascending order using function*/ /*Programed by          Jitendra Kr Yadav                          10116      22 Mar,2011*/ #include<stdio.h> #include<conio.h> void read(int num[],int); void sort(int num[],int); void display(int num[],int); main() { int n[20],x; […]

read more


Connect with Me

GPO 8973 NPC 541; Kathmandu Nepal
Phone: +977 9851236800

Calendar

April 2024
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
282930