Showing posts from May, 2010

WAP to generate ASCII value table for English alphabet, without prior knowledge of any ASCII value

//A program to list the ASCII codes for
//alphabets A-Z and a-z without any prior idea
//of ASCII code
//American Standard Code for Information Interchange.
//It is a character-encoding scheme based on the ordering of
//the English alphabet. ASCII codes represent text in computers,
//communications equipment, and other devices that use text.
//- by Wikipedia
#include <stdio.h>
int main(void)
    int i=0, j=0; //for loops

My Kid Brother Of Five Makes A Sketch Of Me :)

Image by gopal1035 "There's one perfect child and every parent has it"

Vivek made this for me and even signed it on my request, with two parallel lines.


WAP to do the following: (E Balagurusamy, Programming In ANSI C, Problem 2-7)

Declare x and y as integer variables and z as a short integer variable. Assign two 6 digit numbers to x and y. Assign the sum of x and y to z. Output the values of x, y and z. Comment on the output

//E Balagurusamy, Programming In ANSI C,4E
//Exercise 2.7, page 51
//. comments with //scaff indicate code to help during development of code
//. can be safely commented out/removed
#include <stdio.h>
#include <conio.h>
#include <math.h>