#include <stdio.h>
void main()
{
printf("%d", NULL);
}
output :
0
because keyword NULL is defined in a macro with a value defined 0.
that's y in case of linked list we write the following condition :-
while(start)
{
start=start->next // to traverse the linked list
}
void main()
{
printf("%d", NULL);
}
output :
0
because keyword NULL is defined in a macro with a value defined 0.
that's y in case of linked list we write the following condition :-
while(start)
{
start=start->next // to traverse the linked list
}
0 comments: