Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 01-01-2017, 11:33 PM   #1
chinmay.sahoo
Registered User
 
Join Date: Dec 2013
Location: Banglore
Posts: 335
Send a message via AIM to chinmay.sahoo Send a message via MSN to chinmay.sahoo
Arrow What is a NULL macro?

A NULL macro is just what is defined as 0 in macro which is provided by the library.






Asthi jivak | Fat Cutter
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
chinmay.sahoo is offline   Reply With Quote

Old 01-09-2017, 11:10 PM   #2
williyamjam
Registered User
 
Join Date: Nov 2016
Posts: 128
The C library Macro NULL is the value of a null pointer constant. It may be defined as ((void*)0), 0 or 0L depending on the compiler vendor.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
williyamjam is offline   Reply With Quote
Old 01-10-2017, 01:56 AM   #3
wiliamjamesh
Registered User
 
Join Date: Sep 2016
Posts: 469
NULL Macro is simply what is defined as 0 in a macro provided by the library. Null pointer is a pointer which has 0 or NULL value stored and points to nowhwere still it points to 0x00 i.e. the first memory location of the OS.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wiliamjamesh is offline   Reply With Quote
Old 01-17-2017, 02:05 AM   #4
williyamjam
Registered User
 
Join Date: Nov 2016
Posts: 128
NULL Macro is simply what is defined as 0 in a macro provided by the library. Null pointer is a pointer which has 0 or NULL value stored and points to nowhwere still it points to 0x00 i.e. the first memory location of the OS.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
williyamjam is offline   Reply With Quote
Old 01-17-2017, 04:24 AM   #5
ITSGOLIVE
Registered User
 
Join Date: Dec 2016
Posts: 137
The C library Macro NULL is the value of a null pointer constant. It may be defined as ((void*)0), 0 or 0L depending on the compiler vendor.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
ITSGOLIVE is offline   Reply With Quote
Old 02-09-2017, 10:01 PM   #6
Uhurukite
Registered User
 
Join Date: Jun 2016
Posts: 53
NULL macro is defined in stdio.h/stddef.h and represents a zero. Any pointer pointing to 0x0 location is null pointer.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Uhurukite is offline   Reply With Quote
Old 03-01-2017, 10:21 PM   #7
ketul
Registered User
 
Join Date: Aug 2014
Location: Bangalore
Posts: 2,494
NULL macro is same as any other macros which will be replaced by its macro body during preprocessor stage of compilation.
Following may be the declaration for NULL Macro depending on the compiler

#define NULL ((char *)0)

or

#define NULL 0L

or

#define NULL 0
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
ketul is offline   Reply With Quote
Old 03-16-2017, 10:16 PM   #8
pxljobs
Registered User
 
Join Date: Jul 2016
Location: Bangalore
Posts: 431
These will defined in stdio.h used to represent null pointer in your code and the value is zero.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
pxljobs is offline   Reply With Quote
Old 08-17-2017, 11:54 PM   #9
adityadev
Registered User
 
Join Date: Jul 2017
Posts: 30
The C library Macro NULL is the value of a null pointer constant. It may be defined as ((void*)0), 0 or 0L depending on the compiler vendor.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
adityadev is offline   Reply With Quote
Old 08-21-2017, 01:40 AM   #10
Fivesok
Registered User
 
Join Date: Jul 2017
Posts: 118
Null macro is defined in stdio.h and stddef.h It is used to represent a null pointer in your code.its value is zero.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Fivesok is offline   Reply With Quote
Old 08-21-2017, 01:42 AM   #11
balakumar
Registered User
 
Join Date: Jun 2017
Posts: 121
The C library Macro NULL is the value of a null pointer constant. It may be defined as ((void*)0), 0 or 0L depending on the compiler vendor.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
balakumar is offline   Reply With Quote
Old 08-21-2017, 04:00 AM   #12
BryceBrady
Registered User
 
Join Date: Oct 2016
Posts: 640
NULL macro is an implementation defined constant representing a null pointer, usually the integer 0 .
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
BryceBrady is offline   Reply With Quote
Old 08-21-2017, 06:42 AM   #13
Elsha
Registered User
 
Join Date: May 2012
Posts: 442
The macro NULL is an implementation-defined null pointer constant, which may be. an integral constant expression rvalue of integer type that evaluates to zero. (until C++11) an integer literal with value zero.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Elsha is offline   Reply With Quote
Old 10-03-2017, 04:16 AM   #14
AliceArifova
Registered User
 
Join Date: Sep 2016
Location: London
Posts: 1,028
These will defined in stdio.h used to represent null pointer in your code and the value is zero.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
AliceArifova is offline   Reply With Quote
Old 10-04-2017, 04:46 AM   #15
spurtcommerce
Registered User
 
Join Date: Oct 2017
Posts: 4
The C library Macro NULL is the value of a null pointer constant. It may be defined as ((void*)0), 0 or 0L depending on the compiler vendor.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
spurtcommerce is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google To Give Null Quality Scores For New Keywords And Keyword With Low Activity! roberthardy Making money on the web 0 08-16-2016 11:23 PM
Uploaded A Topsites Script To My Forum & Dont Understand This Part.. Sean101 PHP / mySQL 0 04-12-2012 07:08 AM


All times are GMT -7. The time now is 06:55 PM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.