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: 316
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: 106
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: 220
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.
wiliamjamesh is offline   Reply With Quote
Old 01-17-2017, 02:05 AM   #4
williyamjam
Registered User
 
Join Date: Nov 2016
Posts: 106
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: 106
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.
ITSGOLIVE is offline   Reply With Quote
Old 02-09-2017, 10:01 PM   #6
Uhurukite
Registered User
 
Join Date: Jun 2016
Posts: 39
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,161
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: 199
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
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 01:00 PM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.