what is the difference between
const char *p, char const *p, const char* const p
Answer Posted / vignesh1988i
CONST char *p:
here the const. keyword is coming before the data
type... so the string here will be the constant but not he
pointer...
char CONST *p:
here also the string will be the constant but not the
pointer...
CONST char* CONST p:
here both , the string as well the pointer will be constant
Is This Answer Correct ? | 64 Yes | 32 No |
Post New Answer View All Answers
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
Are enumerations really portable?
What is the modulus operator?
using only #include
What’s a signal? Explain what do I use signals for?
Why is c called a structured programming language?
What are the different types of endless loops?
What is meant by type casting?
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
What are header files? What are their uses?
What is a far pointer in c?
How many types of sorting are there in c?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What is the use of linkage in c language?