i am using strrev function and also included the header file string.h but i am getting the compile error
‘strrev’ was not declared in this scope.
what else is required?
i am using strrev function and also included the header file string.h but i am getting the compile error
‘strrev’ was not declared in this scope.
what else is required?
Jump to PostYou can always write your own strrev().
Jump to PostThen, as deceptikon says, it's not supported by that compiler. Write your own.
can i know wat compiler r u using???
some times the compilerdirectory may not have string.h libraray functions.the same problem i had in alloc.h
strrev() isn't a standard function, so compilers aren't obligated to support it. What compiler are you using?
You can always write your own strrev().
in dev-c++ it works fine.
but the problem is when i submit the code on site. it gives me compile error.
Then, as deceptikon says, it's not supported by that compiler. Write your own.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.