mockers
Would you like to react to this message? Create an account in a few clicks or log in to continue.

NULL,0,'\0':Pulkit Sir

2 posters

Go down

NULL,0,'\0':Pulkit Sir Empty NULL,0,'':Pulkit Sir

Post  ballu Sun Feb 01, 2009 10:56 pm

How are NULL ,0,'\0' related
how are they represented in memory
ballu
ballu

Posts : 58
Join date : 2009-02-01

Back to top Go down

NULL,0,'\0':Pulkit Sir Empty Re: NULL,0,'\0':Pulkit Sir

Post  Admin Tue Feb 24, 2009 11:43 am

Code:

#include<stdio.h>

int main()
{
printf("%d %d %d\n",(int)NULL,(int)0,(int)'\0');
}


guess what was the output??
0 0 0

Admin
Admin

Posts : 47
Join date : 2009-01-29

https://mockers.forumotion.com

Back to top Go down

NULL,0,'\0':Pulkit Sir Empty Re: NULL,0,'\0':Pulkit Sir

Post  Admin Tue Feb 24, 2009 11:45 am

#define NULL ((void *)0)

is the statement(if i may call it so) that defines NULL

Admin
Admin

Posts : 47
Join date : 2009-01-29

https://mockers.forumotion.com

Back to top Go down

NULL,0,'\0':Pulkit Sir Empty Re: NULL,0,'\0':Pulkit Sir

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum