What is the difference between char a[] = "string"; and
char *p = "string"; ?
Answer Posted / parmjeet kumar
char a[] will alocate the momery size of " string" word in
other hand char *p will alocate the memory size of one
character... or we can not move the data from one location
to another location but with pointer we can do it...
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
What is calloc() function?
How we can insert comments in a c program?
Is there any possibility to create customized header file with c programming language?
What is void c?
Which are low level languages?
What is the difference between abs() and fabs() functions?
can anyone suggest some site name..where i can get some good data structure puzzles???
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
What are multibyte characters?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
Do pointers take up memory?
What is the difference between mpi and openmp?
Why is c used in embedded systems?
Is it possible to initialize a variable at the time it was declared?
When a c file is executed there are many files that are automatically opened what are they files?