Pages

To Perform Addition, Subtraction, Multiplication and Division of Two No.

Thursday, 10 January 2013
Write a Program to perform addition, subtraction, multiplication and division of Two Numbers.#include <stdio.h>int main(){   int first, second;   int addition, subtract, multiply;   float divide;   printf("Enter two integers\n");   scanf("%d%d", &first, &second);   addition = first + second;   subtract = first - second;   multiply =...
Read more ...

Add n Numbers

Thursday, 10 January 2013
Write a Program Add n Numbers Without using an array.#include <stdio.h>int main()                                            {              ...
Read more ...

Read and Write Character Until End Of File

Thursday, 10 January 2013
Write a Program Read and Write Character Until End of File.#include <stdio.h>int main(void){            int a;            for ( ; ; )            {                       ...
Read more ...

To Print The Reverse Number

Monday, 7 January 2013
Write a program the outputs of number with the digits reversed. #include <stdio.h> #include <math.h> int main() {     int intnumber;                           /* can try long for bigger range, int range is the limit*/     int condition, remainder;   ...
Read more ...

Swap two no using pointers

Monday, 7 January 2013
 Swap two numbers using pointers   #include <stdio.h>int main(){   int x, y, *a, *b;   int temp;   printf ("Enter the value of x and y\n");   scanf ("%d%d", &x, &y);   printf ("Before Swapping\n x = %d\n y = %d\n", x, y);   a = &x;   b = &y;   temp = *b;   *b = *a;   *a = temp;   printf("After...
Read more ...

Swapping of two numbers in C

Monday, 7 January 2013
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 Swapping of two numbers #include <stdio.h> int main() { int x, y; int temp; printf ("Enter the value of x and y\n"); scanf ("%d%d", &x, &y); printf ("Before Swapping\n x =...
Read more ...

Find Out The Largest Value

Monday, 7 January 2013
 Write a program that determines the largest value among the integers. #include <stdio.h>#include <conio.h>int main(){    int i, num[5], largest = 0;    int stop = 0;    while( stop != -1)    {        printf("Enter 5 integers separated by a space: ");               for(i=0;...
Read more ...

Find Out The Smallest Value

Monday, 7 January 2013
 Write a program that determines the smallest value among the integers. #include <stdio.h>#include <conio.h>int main(){    int i, num[5], smallest = 0;    int stop = 0;    while( stop != -1)    {        printf("Enter 5 integers separated by a space: ");               for(i=0;...
Read more ...

Add an integer between 0 to 999

Monday, 7 January 2013
Write a program that reads an integer between 0 to 999 and adds all the digits in the integer. #include <stdio.h> #include <conio.h> int main() {     int count = 0, num = 0;     int reminder = 0, sum = 0;     int stop = 0;     while (stop != -1)     {         printf("Enter an integer: ");       ...
Read more ...

Find out Even or Odd integer

Monday, 7 January 2013
 Write a program that reads an integer and checks whether it is odd or even. #include <stdio.h>#include <conio.h>int main(){   int num = 0;   int reminder = 0;   while(num != -1)   {      printf("Enter an integer (-1 to stop): ");      scanf_s("%d", &num, sizeof(int));          ...
Read more ...

Socket Programming in C

Thursday, 3 January 2013
                            Socket Programming in c How To Create the TCP/IP Client Server Model? The classic client-server model, the client sends a request to the server, and the server to do some processing, will reply to the request is received (or back) returned to the client. The terms...
Read more ...