class foo {
public:
static int func(const char*& p) const;
};

This is illegal, why?

Answer Posted / kalpana.y

this is illegal because

->here the class name is foo
->but,func is declared
->const is declared at outside

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c mainly used for?

599


Differentiate between null and void pointers.

633


What are categories used for in c?

568


Can a pointer be volatile in c?

535


Explain why C language is procedural?

771






What is structure and union in c?

603


Why can’t constant values be used to define an array’s initial size?

837


In C programming, how do you insert quote characters (‘ and “) into the output screen?

895


What is the purpose of void in c?

619


write a programming in c to find the sum of all elements in an array through function.

1708


What is %s and %d in c?

594


What is the size of empty structure in c?

595


Why do we use header files in c?

584


In which layer of the network datastructure format change is done

1433


how to find anagram without using string functions using only loops in c programming

2718