Tuesday 8 August 2017

Jquery Page Scroller



Jquery Page Scroller


Page scroller make your web page design more attractive and formal because when a user want see other part of your page, then  he/she need to scroll page up or down using scroll bar or mouse wheel which was accepted before of jquery. Now if we have jquery then why we used traditional page design.So scroller you page using jquery.

Page scroller also helps to design single page website.

Scroll to Top of window

$('html, body').animate({ scrollTop: 0 }, 0);
$('html, body').animate({ scrollTop: 0 }, 'slow');


Scroll to selected area of web page

function Trans(id)
        {
            $('html, body').animate({

Monday 7 August 2017

Average Age Calculation with dynamic structure array

Q : Write a program which asks the user to enter the name and age of persons in his group. The numbers of persons is not known to the user in the beginning of the program. The user keeps on entering the data till the user enters the age as zero. The program finally prints the average
age.

Solution :

#include<stdio.h>
#include<conio.h>
typedef struct stu
{
      char name[20];
      int age;
      struct stu * next;

Friday 4 August 2017

* Operator Pointer

Pointer is a special type of variable which hold address of a location in memory. * symbol is use to make pointer. You can manipulate any variable data though pointer from other function. Change will be permanent when it been done with pointer because pointer has actual physical location of a variable.

You can manipulate a variable data using pointer. By
  • First make a pointer variable
  • Assign address of variable to pointer
  • Access variable data though * operator

Sum of series

#include<stdio.h>
void main()
{
     int i,j,k=0;
     char sym='+';
     printf("Enter n>> ");
     scanf("%d",&i);