wats the diference btwen constant pointer and pointer to a
constant.pls give examples.
Answer Posted / jamili reddy
int i =12;
int * const ptr = 24; //constant pointer
you can't change the ptr value
const int *ptr = 24;//ptr to a constant
int const * ptr = 24;//ptr to a constant
you can't change the value at ptr
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
The difference between printf and fprintf is ?
What is a lookup table in c?
Write a program to find factorial of a number using recursive function.
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
Does c have an equivalent to pascals with statement?
What is the maximum no. of arguments that can be given in a command line in C.?
What are the advantages of the functions?
What is the use of a ‘ ’ character?
Do variables need to be initialized?
Explain how many levels deep can include files be nested?
What is wrong in this statement?
What does return 1 means in c?
Explain what is the benefit of using an enum rather than a #define constant?
What is a spanning Tree?