what is the difference between NULL('\0') and 0?
Answer Posted / guest
NULL('\0')- A string in C is always terminated by a null
character.The ascii value of '\0' is 0
0 - The ascii value of 0 is 48
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
Can i use “int” data type to store the value 32768? Why?
What is the difference between mpi and openmp?
Can you explain the four storage classes in C?
What does do in c?
What is the best way to store flag values in a program?
How can I find out how much free space is available on disk?
What is anagram in c?
What are formal parameters?
What is meant by recursion?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
Write a Program to find whether the given number or string is palindrome.
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
Sir i need notes for structure,functions,pointers in c language can you help me please
What are the 4 data types?
How pointer is different from array?