Is null always defined as 0(zero)?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?

2 Answers   TCS,


Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

0 Answers   Expedia,


what type of errors are checked during compilation

3 Answers  


what is the use of ‘auto’ keyword?

1 Answers  


When should the const modifier be used?

0 Answers  






Write a program to find the number of times that a given word(i.e. a short string) occurs in a sentence (i.e. a long string!). Read data from standard input. The first line is a single word, which is followed by general text on the second line. Read both up to a newline character, and insert a terminating null before processing. Typical output should be: The word is "the". The sentence is "the cat sat on the mat". The word occurs 2 times.

0 Answers  


WAP TO ACCEPT STRING AND COUNT A COMES N TIMES B COMES N TIMES C COMES N TIMES D COMES N TIMES AND SO ON......... AT LAST UNTIL Z COMES N TIMES...............

3 Answers  


Explain the difference between malloc() and calloc() in c?

0 Answers  


What are the properties of union in c?

0 Answers  


I want tcs placement papers of 2004-2009 , its urgent

6 Answers   TCS, Wipro,


which do you prefer C or Pascal?

1 Answers  


which will return integer? a) int*s ( ) b) ( int* ) s( ) c) int ( *s ) ( )

1 Answers   C DAC,


Categories