class foo {
public:
static int func(const char*& p) const;
};
This is illegal, why?
Answer Posted / revathy
static functions can access static data only
Thus this is illegal
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the value of c?
Why doesn't C support function overloading?
What is a newline escape sequence?
What is the advantage of c?
Who developed c language?
What does & mean in scanf?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
what are enumerations in C
What is return type in c?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
What is the difference between fread and fwrite function?
In which language linux is written?
write an algorithm to display a square matrix.
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
In C language what is a 'dangling pointer'?