Posts

Image
Bootstrap Automation Learn how to create a smart website which learns your user and reacts properly to his behavior. START TUTORIAL  Push notifications Push messaging provides a simple and effective way to re-engage with your users and in this tutorial you'll learn how to add push notifications to your web app START TUTORIAL  MDB with Angular Built with Angular 5, Bootstrap 4 and TypeScript. CLI version available. FREE DOWNLOAD  MDB with React Based on the latest Bootstrap 4 and React 16. FREE DOWNLOAD  MDB with Vue Based on the latest Bootstrap 4 and Vue 2.5.7. FREE DOWNLOAD  « Previous 1 (current) 2 3 4 5 » Next DOWNLOAD MDB  START FREE TUTORIAL               

Data types in C Language

Image
Data types in C Language Data types specify how we enter data into our programs and what type of data we enter. C language has some predefined set of data types to handle various kinds of data that we can use in our program. These datatypes have different storage capacities. C language supports 2 different type of data types: Primary data types : These are fundamental data types in C namely integer( int ), floating point( float ), character( char ) and  void . Derived data types : Derived data types are nothing but primary datatypes but a little twisted or grouped together like  array ,  stucture ,  union  and  pointer . These are discussed in details later. Data type determines the type of data a variable will hold. If a variable  x  is declared as  int . it means x can hold only integer values. Every variable which is used in the program must be declared as what data-type it is. Integer type Integers are used to store whole numbers. Size and range of Integer

Eigen Values and Eigen Vectors

Eigen Values and Eigen Vectors Eigen vector of a matrix A is a vector represented by a matrix X such that when X is multiplied with matrix A, then the direction of the resultant matrix remains same as vector X. Mathematically, above statement can be represented as: AX =  λX where A is any arbitrary matrix,  λ are eigen values  and X is an eigen vector corresponding to each eigen value. Here, we can see that AX is parallel to X. So, X is an eigen vector. Method to find eigen vectors and eigen values of any square matrix A We know that, AX = λX => AX – λX = 0              => (A – λI) X = 0 …..(1) Above condition will be true only if (A – λI) is singular. That means, |A – λI| = 0 …..(2) (2) is known as characteristic equation of the matrix. The roots of the characteristic equation are the eigen values of the matrix A. Now, to find the eigen vectors, we simply put each eigen value into (1) and solve it by Gaussian elimination, that is, convert the a

Important

Q1. Difference betweenn local and global variables. BASIS FOR COMPARISON LOCAL VARIABLE GLOBAL VARIABLE Declaration Variables are declared inside a function. Variables are declared outside any function. Scope Within a function, inside which they are declared. Throughout the program. Access Accessed only by the statements, inside a function in which they are declared. Accessed by any statement in the entire program. Life Created when the function block is entered and destroyed upon exit. Remain in existence for the entire time your program is executing. Storage Local variables are stored on the stack, unless specified. Stored on a fixed location decided by a compiler. Q2. Wap a program to search INDIA from string LOVEINDIA and display it on screen. #include <string.h> #include <stdio.h>     int main() {      // Take any two strings      char s1[] = "LOVEINDIA" ;      char s2[] = "INDIA" ;      char * p;