C programming

Universal Human Value Third Terminal Exam

Department of Computer Science and Engineering Second Year (Forth Semester) Universal Human Value Note:-   Each short answ…

Type Casting in C.

Type casting is a way to convert a variable from one data type to another data type. For example, if you want to store …

c program to add all the digits of a number.

#include<stdio.h> #include<conio.h>  void main()  {  int n,sum=0,m;  printf("Enter a number:"…

C program to reverse a string.

#include <stdio.h> #include <string.h> int main() {    char arr[100];    printf("Enter a string…

Year 2016.

Year 2016.

Bubble Sort

# include < stdio.h > int main () { int a[ 50 ], n, i, j, temp = 0 ;   printf ( " Enter how many n…

C program to get IP address.

#include<stdlib.h>   int main ( ) { system ( "C: \\ Windows \\ System32 \\ ipconfig" ) ;   retur…

C program to print date.

#include <stdio.h> #include <conio.h> #include <dos.h>   int main ( ) { struct date d ;   g…

C program for binary search.

/*  C programming code for binary search */ #include <stdio.h>   int main ( ) { int c , first , last , m…

Linear search in c.

/*C program for Linear search */ #include <stdio.h>   int main ( ) { int array [ 100 ] , search , c , n ;…

C program to multiply two metrics.

/*C Program for  Matrix multiplication */ #include <stdio.h>   int main ( ) { int m , n , p , q , c , d …

Switch statement in C++.

Switch statement The if and if-else statements permit two way branching whereas switch statement permits multiple branc…

Load More
That is All