Sunday, 21 June 2015

Matrix Addition In C Program Language

Matrix Addition in C Program


Matrix addition in C : The Matrix Addition in c Program, Matrix Having Rows And Columns. The Different Type of Matrix Representation. For Example: ( 2 x 3 ) ...

Program


#include <stdio.h>
alltechprograms

int main()
{
   int m, n, c, d, first[10][10], second[10][10], sum[10][10];
   printf("Enter the number of rows and columns of matrix\n");
   scanf("%d%d", &m, &n);
   printf("Enter the elements of first matrix\n");
   for (c = 0; c < m; c++)
      for (d = 0; d < n; d++)
         scanf("%d", &first[c][d]);
   printf("Enter the elements of second matrix\n");
   for (c = 0; c < m; c++)
      for (d = 0 ; d < n; d++)
            scanf("%d", &second[c][d]);
   printf("Sum of entered matrices:-\n");
   for (c = 0; c < m; c++) {
      for (d = 0 ; d < n; d++) {
         sum[c][d] = first[c][d] + second[c][d];
         printf("%d\t", sum[c][d]);
      }
      printf("\n");
   }
   return 0;
}


Output

Enter the number of rows and columns of matrix
1
2
Enter the elements of first matrix
2
4
Enter the elements of second matrix
6
8
Sum of entered matrices:-
8               12


Sum Of Pointer addition in C Program Language

Pointer Addition in C Program


About Addition Pointer : The Addition Pointer in c program using for addition two pointer in the c programming Language. 

Program
sum of pointers

#include <stdio.h>
int main()
{
   int first, second, *p, *q, sum;
   printf("Enter two integers to add\n");
   scanf("%d%d", &first, &second);
   p = &first;
   q = &second;
   sum = *p + *q;
   printf("Sum of entered numbers = %d\n",sum);
   return 0;
}

Output

Enter two integers to add
24
12

Sum of entered numbers = 36


Assert Function in C

How To Use Assert Function in C Programs


How To Use : The  Assert Function in c Programs Using Header Present in the Standard Library Of C Language. That is Defines The Macro assert.

 Syntax:  <assert.h>

The Macro Implements an Assertion. That Can Be Used To Verify The Assumptions Made in the Program. The Macro Assert Diagnostic insertions in the program. When executed if the expression is false ( equal to 0 ), Assert Writes information about the call that failed in stderr and then calls abort.

More About Specifically, assert function in c Program Below.

Program
alltechprograms


#include <stdio.h>
#include <assert.h>

int main() {
  int a, b;

  printf("Input two integers to divide\n");
  scanf("%d%d", &a, &b);

  assert(b != 0);

  printf("%d/%d = %.2f\n", a, b, a/(float)b);

  return 0;

}


Output 

Input two integers to divide
24
12

24/12=12.0

Thursday, 18 June 2015

Recycle Bin data Recovery Without Software

Recycle Bin Recovery Data Simple Way


Recycle Bin Data Recovery Used For Most Of the Peoples. Because , Some Time Unfortunately Delete Files ( Permanent ). At Time How To Recovery Your data in Recycle Bin. No need To Download Any Type Of Software, Just Follow The Steps. Get Back Your Data ( Recycle Bin Recovery ).
Recovery Recycle Bin

Follow Steps :

  • For Example: Data Placed In ( Local Disk D:).
  • Create A folder (Folder name Ex: Check )  And Insert a File Like Image , Song.
  • Now, Delete Permanently The file in the Folder. ( Shift+ Delete )
  • Check Recycle Bin , See The File Delete Permanently.

Recovery Process :

  • Now, Go To The ( Local Disk D:) Open Disk. See Already Create Folder ( Ex: Check ).  
  • Right Click On the Folder Click Properties.
  • Now Can See The Previous Version ( Important ). There Having A Small text Area. There See The Your Folder Name ( Ex: Check ).
  • Click On The Folder ,  Now Bellow Click On Open Button.
  • Folder Open New Window Now , See The Your Delete File Copy . Save The Another Place . Simple  Complete.

Enjoy !!

Note : Don't Use Important File For Example. This Way To Recovery Data in Recycle Bin. You Like This Share Information.... 

Tuesday, 16 June 2015

How To Fix Hard Disk Bad Sectors Errors Repair [ Solved ]

Hard Disk Bad Sector Errors Repair


What is Bad Sectors ? How To Remove [ Fix ] Bad Sectors Errors in Hard Disk. Follow The Steps Care Fully. 

Main Cause Bad Sectors : Bad Sector Create Your Hard Disk Main Cause Install Different Types Of Application [ Software ]. Install The Unknown Software Using Computers or Laptops. Uninstall  Unknown Applications  At Time ,There Does not Complete Remove  Hard Disk. Some Amount Information Store Behind Hard Disk.Then Hard Disk Running Slow Response.

How To Fix Hard Disks Bad Sectors Follow Steps Complete Remove Bad Sectors in Hard Disk !

Steps Care Full :

1. Using ( Win + E) Open My Computer . Now See The OS Install Local Hard Disk. Every One Install OS Like Local Disk (C:) .

2. Click The Right Click  on Mouse See The Properties Last One Click it !

3. Now See the Disk Clean Up Click it And Set The Local Disk C:

4. Can Display The  Picture. Any Permission Set Up Hard Disk Allow The Process ( Admin ) .

5. The Process Complete Report Errors And Amount Of data LOSE In Hard Disk .The Click Ok . Next Delete Files  Permanently .


hard disk bad sectors remove
hard disk bad sectors removehard disk bad sectors remove                                                 

6. Next Click Tools Label Above Computer Properties ! Now See Check.

7.Hit The  Check  Now can Display The  Various operating System Below Picture representation.

hard disk bad sectors remove
hard disk bad sectors remove8. Now, Windows 7 Tick Mark ( Full Box ) same as picture Click Start Wait For Complete Process . Complete Bad Sectors Are Remove Your Your Hard Disk.

9. Windows 8 Click Then  Scan Drive Until Complete Process .

10. Complete Process Can Display Same Message In Windows 7 /8. Below Picture.

hard disk bad sectors remove









If Any Errors Are Display Message Box. Next Try To Change OS Better Chance.  Because , This Type Bad Sectors Errors Sequential Reading Slow System Running. Some Days Hard Disk Will be Failure. ( No Response ) .

Note : Care Fully guys , if Any Wrong Step Until Complete Process Hard Disk Miss Failure.  Any Doubts About The Process Comment Below . Also Share The Message Use Full For Any One.

Monday, 15 June 2015

how to create html page with notepad

Create Html Page With Notepad


Notepad :

                              The Notepad Using For Html Page Editor. The Notepad Having The Browser Tools Inbuilt Software. So, Most Of The Peoples Are Like Using Notepad. The Notepad Can  use Editing To All Web Programming Languages Like Html, CSS, Java Scripts, ( Scripting Languages ). Every Coding Page Save as in Notepad few Formats is bellow

    html first programs with example
  • html ( .html )
  • css ( .css )
  • php ( .php )
  • javascript ( .js )
  • xml ( .xml )
  • python  ( .py )
  • ruby ( .rb )
  • vbscript ( .vbs , .vb )
  • Java ( .java )
  • c# ( .cs )
  • c ( .c )

The About Formats Are Save As Notepad For Programs Save Times. more number of formats are using webpages Designing.

Html Page Design

                       Now Learn How To Create a Html First Web Page , Here Using Just Notepad. Html Code Start With <html> ---->This is called as Tag. Every Tag Having First Tag And Ending Tags.</html>

Structure Of Html Page Format:

<html>
<head>
<title></title>
</head>
<body>
</body>
</html>

Picture Presentation  With Html

First Step 1: Then Click Win+R Display With Run Command Type Notepad.

html first programs with example


Second Step 2: Then Type Html Code Below In Notepad.

html first programs with example
<html>
<head>
<title>first page</title>
</head>
<body>
<h1>Hello Welcome !!</h1>
<p>All Tech Program</p>
</body>
</html>


Third Step 3: Then Type save as in Notepad Html Format Is ( .html ) .

html first programs with example


Corner Click File And Save As Click it .

Now !  Save As ( .html )









Fourth Step 4: Next Step Go To the Save  File Path ( Example Desktop above Image ). Click it Open Using Web Browsers Like Google, Firefox, ....

Output :

html first programs with example


Sunday, 14 June 2015

C Language Basic Overview

 C Language Basic Overview


Overview :  The c programming language is a general-purpose mainly , c is high- level language. c is originally developed by Dennis Ritchie  to develop the  Unix operating System at Bell Lab. C Was Original first implementation on the December PDP-11 Computer in 1972.Since at 1978, Dennis Ritchie Produced the first publicly Available description of c.

Unix operating system, the computer , and essentially all Unix Application programs have been written in c. C is Professional Language for Different reasons Bellow.


  1. C Programs is Easy to learn . Because , C is high- level Language.
  2. C Programs Best ( Understand Float Chart )  in Structured Language.
  3. C Language produced efficient programs.
  4. C programming Language can handle low-level activities.
  5. C languages compiled on a Variety Of Computer Plat Forms. ( Programs Execution )

Facts in C :  C was first invented to write an operating System Called Unix. C is a Successor of B Language , Which Was Introduced Around 1970.

The C Language Was formalized in 1988 by the " American National Standard Institute " ( ANSI ) . The Unix OS Was Totally Written in c By 1973.

Now a days , C is Most Used And Popular System Programming Language. More Then Software Developed Using C Language.

For Examples, Unix Operating System, Windows Desktop Application, MySQL .


Why Use C Language Best : C Was Adopted as a System Development Language. Because It Produced Code That Runs Nearly As Fast As Code Written in Assembly Language.


  1. Operating Systems
  2. Language Compilers
  3. Assemblers 
  4. Text Editors ( Notepad )
  5. Print Spoolers
  6. Network Drives
  7. Modern Programs
  8. Databases
  9. Language Interpreters
  10. Utilities 

Write a Small C Programs Structure

How to c program Save :  The C Programs Can Vary From more numbers of code lines  are saving Using notepad write . Then Save as ( .c )

#include<stdio.h>

int main()

{

printf("Thanks For Reading ");   /* puts (" "); also using. */

return 0;

}

Here  Save as , The ( thanks.c ) . # is preprocessor. main() is method. <stdio.h> is a preprocessor command. printf display on output. C Programs Save as in Unix Operating System - Use " vi " In Shell Operating System.


/* puts(" "); also using */  Using Comment Operation Just Show On Code .But, Its Not  Work Any Action In The Programs.

Semicolons ;  In The C Programs , The Semicolon is a statement terminator. That is , each individual statement must be ended with a semicolon . semicolon  ( ; )  Indicates the end of one logical entity.

C Identifiers :  C Identifier is a name used to identify a variable, Function, or any other user-defined item.

Rules For identifiers : A identifiers starts with a latter A to Z also Use a to z. An Underscore ( _ ) Followed by Zero or letters,digits ( 0 to 9 ).

C Don't Allows Punctuation character such as @, $,and % Within identifiers.

C Is Case Sensitive Programming Language.

Ex:  abc,  b_789,  _temp; 

Friday, 12 June 2015

types of Instructions in c

Different types of  C instructions in C language

What is C instructions :   There are basically three types of instructions in c.


  1. Type Declaration Instruction
  2. Arithmetic Instruction
  3. Control Instruction

The Purpose of each of the instructions below 

1. Type declaration instruction - to declare the type of variables used in a c program.

2. Arithmetic Instruction - to used perform arithmetic operations between constants and variables.

3. Control Instruction - to Control of the sequence of execute of various statements in a c programs.

 1st Learn to c programs would be use only type declaration and Arithmetic Instructions. 

Type Declaration Instructions in c

This instruction is used to declare the type of variables being used in the program. variable used in the program must be declared before using it in any statement.

The type of declaration statement is written at the beginning of main() function.

Ex : 

      int a;
      float a,b;
      char  name;

Declaration instructions type variable another example

Ex : 

       int a=5,b=10;
       float a=1.5,b=2.55;


Arithmetic Instructions in c 

c arithmetic instruction consists of a variable name on the left hand side of  =  and variable name & constants on the right hand side of = the variable and constants appearing on the right side of = are connected by arithmetic operators like +,-,/,*,and %.

Symbol uses :

+,-,/,*  are the arithmetic operators.

= assignment operator.

1,2,3 are integer constants.

1.5,2.5,3.5  are real constants.

int a; a- declare to variable.

float a,b,c;   a,b,c- declare to real variables.

Example Arithmetic instructions in c programs

#include<stdio.h>
int main()
{
int a,b,c,d,e,f;
printf( "enter the number :");
scanf("%d%d",&a,&b);
c=a+b;
d=a-b;
e=a*b;
f=a/b;
printf("The addition operation a an b is %d",c);
printf("The subtract operation a an b is %d",d);
printf("The multiplication operation a an b is %d",e);
printf("The devide operation a an b is %d",f);
}

Control Instructions in c 

In The Order of the control instructions  determine the flow of control  in the programs.There are four types of control instructions in c.


  1. sequence control instruction
  2. selection or decision control instruction
  3. repetition or looping control instruction
  4. case control instruction


Sequence control instruction - that instructions are executed in the same order in which they appear in the programs.

decision control and case control instructions - the Instructions are allow the computer to take a decision as to which instruction is to be executed next.

Looping or repetition Control instructions -  The looping control instruction helps to computer execute a group  statements repeatedly.  

Thursday, 11 June 2015

compilation and execution in c programs

Compilation and Execution in c programs


How to work compilation in c :   The compilation and execution defined as " once We have written the programs you need to type it and instruct the machine to execute it.You write a c program and you need to another c program called as " Editor ". 

Once we type a c programs it need to be converting to machine language (0's ,1) before the Machine Can Execute it. Carry Out This Converted We Need Another Program Called "Compiler". Compiler vendors provides an Integrated Development Environment ( IDE ). which consists of an Editor as well as the compiler. 

Most of the programs in the book would work with all the compilers.wherever there is a deviation I would point it out that time.

Assuming that you are using a turbo C or turbo C++ compiler . Here are the steps that you need to Steps follow to compile and execute your c programs.


1. Start the compiler at C> prompt. The compiler ( TC.EXE  is usually present in C:\TC\BIN directory ). 

2. Select New From the File menu.

3. Type the Program.

4. Save Program Using Keywords F2 Under a Proper name ( say Program 1.c ).

5. Use keyword Ctrl+F9  to Compile and Execute the program.

6. Use Keyword Alt+F5 to view the output. 


Example For Small Programs in c Better Understand 


Program Code :


#include<stdio.h>
int main()
{
printf("Welcome To AlltechPrograms.");
}

Output :

Welcome To AlltechPrograms.

blogger meta tags tips for seo

Blogger SEO Meta Tags Tips 

Meta Tags : 

                            The seo meta tags tips useful for your website top to search engine.The search engine every day can be refresh or modified webpages. At a time check the meta tag title and description tags also keywords in meta tags.

How to SEO Work :

                   We Enter the words  search engine compare to the website title tag .next checking the description tag.the keywords useful for more number of words in content there are match with page will be appears on the first place.

Here, SEO Meta tags friendly tips Added your template 

<title>webpage title match with content ( 100 characters )</title>
<meta content=" Here matter about website ( 200 characters ) " name="description " />
<meta content="important keywords only ( 20 , 255 characters )" name="keywords"/>
<meta content="index,follow" name="robots"/>


Overview above SEO meta tags tips

Title meta tag :  

           The title tag must be important for seo. You can known to peoples are can type the search engine  word or statement will match we are website " title tag".

Description meta Tag:  

                   The description tag is heart of the seo search engine. so many website having relatively talking topic now a days. we understand peoples, how can search in search engine ( google ,yahoo ). will be match your description. top place appear we  are website. 


Keywords meta tag :

                        The Keywords tags olden days search engine are most useful. now consider to the title tag and description mainly. but , keyword are also useful to some times enter any word in search engine , at time the webpage content match your keywords appears to the top place .

Robots meta Tag

            The Robots tag will be useful to  improve the we website traffic using spider web connect to the all webpages. get more number of links added to your website ( back links ).best appear on the we website .

Tuesday, 9 June 2015

html image insert code examples

html image insert code example

           Html Image Insert code Example 


Html Image insert Code:

The Html image inserting using Various Attributes Like (Width , height ) different types of style sheet adding more effectively Presentation on your Web Pages.

Format For Html image in webpages 

<img src=" " width=" " height = " "></img>

Here , 

img ---> format
src ----> image path

Here , Only Html Image Format .We Want To More Information About Image in css. Bellow 

<html>
<head>
</head>
<body>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYNpoyxy0Uo77RwzEW0ew_mhbsIii5PUfiCKoR48dDJaUi84oXgFdAKfl_yGBdDiprFtOkYBWaWZzd2lOKzeGuolDl0qI8xTQ6dXL8OHrGb6Rltqq8WNRjIkJPwDEYy7F_ekNE8nFw0_-e/s1600/alltechprograms.png">
</body>
</html>

html image insert adding style sheet in image . The above image having format is img. Do known already. Then Will be added style attributes for Webpage bellow 

<html>
<head>
<style type="text/css">
img {

width:150px;
height:150px;
padding:20px;
background:black;

}                                                                                         Mouse Move on Image over Head


img:hover { 

background:red;
}

More No .of Image Formats Updates ( this is for beginners )

Monday, 8 June 2015

different types of c variables

Types of  C Variables 


Definition  of Variables : An entity that  may vary during program execution is called a "variable". 

Variables location in c : Variable names are given to locations in memory. These locations can be contain integer, real or character constants. In any language , the types of variables that it can support depends on the types of constants that it can handle.

Because , a particular type of variable can hold only the same type of constant.

Rules for variable names

  1. Variable name is any combination of 1 to 31 alphabets, digits or Underscores. Some compilers allow variable names whose length could be up to 247 character.Still , it would be safer to stick to the rule of 31 characters. don't create unnecessarily long variable names  (Typing effort ) .
  2. The first character in the in the variable name must be an alphabet or underscore.
  3. no commas or blanks are allowed with in a variable name.
  4. no special symbols other than an underscore ( people_sal ) can be used in a variable name.

These same rules for all type of primary and secondary variables.

Example For Variables in c Program Using Formats

int a,b,c;
int si,m_hra;
float a;
char code;

Since , The maximum length of a variable name using in 31 characters in c programming language.

if We want to calculate simple interest , it is always advisable to construct meaning full variable names like sum, temp to represent principle , most of the users like type in this types of variables ( a,b,c ). 



alltechprograms

c characters set

C Characters set



A character denotes any alphabet, digits or Special symbol used to represent information.Here We see the valid alphabets, numbers and special symbols allowed in c.


Alphabets :   A,B..........,Y,Z       a,b........., y,z

Digits :         0,1,2,3,4,5,6,7,8,9

alltechprogramsSpecial Symbols :  "  ~ ! @ ' # % & * ( ) _ + - + | \ { }  [ ] : ; ` < > , . ? / ^

different types of c constants

Types Of C Constants 

alltechprograms
C Constants can be divided into two major Categories.

  • Primary Constants

  • Secondary Constants

Primary Constants : Integer Constant , Real Constant , Character Constant.

Secondary Constants: Array, Pointer,Structure,Union,Enum,etc..


Rules for constructing integer constants 


  1. An integer constant must have at least one digit.
  2. it must not have a decimal point.
  3. it can be either positive or negative.
  4. if no sign precedes an integer constant is assumed to be positive.
  5. no commas or or blanks are allowed with in an integer constant.
  6. the allowable range for integer constants is -32768 to 32767

Rules For Constructing Real Constants

Real Constants are often called Floating point constants.The real Constants Could be Written in two forms

  1. Fractional form 
  2. Exponential form

Rules :

Constants Expressed in fractional form

  1. A real Constant Must have at least one digit.
  2. it must have a decimal point.
  3. it could be either positive or negative.
  4. default sign is positive.
  5. no commas or blanks are allowed within a real constant.

Constants Expressed in Exponential form

  1. The mantissa part and the exponential part should be Separated by a letter 'e'.
  2. The mantissa part may have a positive or negative sign.
  3. Default sign of mantissa part is positive.
  4. The exponent must have at least one digit, which must be a positive or negative integer.default sign is positive.
  5. Range of real constants expressed in exponential form is -3.4e38 to 3.4e38.

Rules For Constructing Character Constants 

  1. A Character constant is a single alphabet, a single digit or a single special symbol enclosed within single inverted commas.Both the inverted commas should point to the left.
  2. For Example, 'A' is a valid character constant whereas 'A' is not.
  3. The Maximum length of a character constant can be 1 character.