Powered by Blogger.

Difference Between Structure and Pointer in C



Difference Between Structure and Pointer in C

Hello Friends Today we will learn about difference between structure and pointer in C

Difference Between Structure and Pointer in C

Structure in C refer to a collection of various data types.
While pointer refer to address in C & are used to point some particular place in C memory.

Structure Syntax

struct node
{
int data; struct node *next;
};

Pointer Syntax

#include <stdio.h>
int main ()
{
 int *ptr = NULL;
printf("The value of ptr is : %x\n", ptr );
return 0;
}



facebook
google-plus
twitter
pinterest

No comments :

Post a Comment

HTML Tutorial

images

About Sitesbay

This blog is related to Java Tutorial, C++ Tutorial, C Tutorial, Online Earning tips and more in very simple and easy way. Here i will try to give complete idea related to all new technology.

Java Tutorial

Java is Object oriented programming language, It is more secure and high performance language.

C++ Tutorial

C++ is also Object oriented programming language, It is more simple and easy to learn.

 
https://sitesbay.blogspot.com/?utm_medium=d2898efa59afcc0bc411921036e22b767ca37b09