C++

C++ is the language Cfree is the compiler.. You are the Program User. I am the Programmar. ~Osaid Jamal

Tuesday, 15 April 2014

Representation of a Linked List In a Memory

#include<iostream>
using namespace std;

struct node
{
   int data;
   node *link;
};
node *head;

main()
{ head= new node;
 head->data=405;
 head->link=NULL;
 cout<<"The Value in the starting node= "<<head->data<<endl;}

Output:

Posted by Unknown at 11:15
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Unknown
View my complete profile

Blog Archive

  • ▼  2014 (16)
    • ▼  April (16)
      • Pyramid - Using Nested For Loop
      • Switch Case- Simple Program
      • Calculator Using Else if Statement - C++
      • Nested If Statement+Logic Gates- Using C++
      • While Loop Basic Program1- Using C++
      • While Loop- Basic Program- Using C++
      • Compare Two Values- Relational Operators- Using C++
      • For loop Basic Program- Using C++
      • For Loop- Counter Program- Using C++
      • Factorial Using C++
      • Representation of a Linked List In a Memory
      • Array Using C++
      • Pointers Using C++ Program 1
      • Nested For Loop Using C++ Program(2)
      • Fabonacci series Using C++
      • 00- How to print any message using c++ ?
Ethereal theme. Powered by Blogger.