Posts

Groups and Coding

Code:          A code is collection of words that are to be used to represent message.   Group Code:     the set of binary codes which is a group under the operation ex-or called group code.

Data Structure Using C

Image
Q 1.    What is Data? Explain its type. Ans.    Data is Collection of Number, Alphabets and symbols to represent the information. A computer takes row data as input and after processing of data it produces refined data as output. We can also say the computer science is the studies of the data. There are two types of the Data: Atomic Data Composite Data Atomic Data :-> Atomic Data are non-compressible entity. E.g. A Integer Value 123 are not de-decompose  Composite Data :-> Composite Data is a composition of several atomic data and hence data can be further divided into atomic data. E.g. Date of Birth         Q 2.    What is Data Type? Ans.    A data type is a term which refers to the kind of data that variables may hold in a program language E.g. int x; x is a variable of type integer.

Addition of Two Numbers

/* Addition of Two Numbers.. */ #include<stdio.h> int main() { int a, b, sum; printf("Pls type The First Number: \n"); scanf("%d",&a); printf("Pls type the 2nd Number: \n"); scanf("%d",&b);   sum = a + b;   printf("Sum of Entered Numbers= %d\n", sum); getch(); return 0; }

Reverse The Enter 3 digit number… A program of C..

Reverse The Enter 3 digit number…