what is difference between null and nul in c language
Answers were Sorted based on User's Feedback
Answer / xsoft
null this is a key word in C language but the nul this
keyword used in dos Programming as you can you use it in C
programming with the function system("dir ./a>nul");
then when can consider this nul as an output.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / amar singh rajput
NULL is an pointer with value zero (0) ,and NUL is an character with integer value 0 (zero) .
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a program to swap two numbers without using third variable?
What is a example of a variable?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
Write a program to show the workingof auto variable.
int a[3][5]={ {1,2,3,4,5],{2,3,4,5,6},{10,11,12,13,14}}; int *p=&a; printf(ā%dā,*(*(x+1)+3));
2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above
Is return a keyword in c?
What is file in c preprocessor?
Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV
Is c language still used?
Whats wrong with the following function char *string() { char *text[20]; strcpy(text,"Hello world"); return text; }
where does malloc() function get the memory?