You can either use references or you can simply return the result by value. Note that in C++, unlike C, references are not the same as pointers. C++ references are aliases, alternate names for existing objects, whereas pointers are just variables that may contain a memory address that can be dereferenced.
Yes.
void reverse (char* str) { char *left, *right, temp; left = right = str; while (*right) ++right; --right; while (left < right) { temp = *left; *left = *right; *right = temp; ++left; --right; } }
Not possible through html. Use php strrev function. For eg:
program to find maximum of two numbers using pointers
* * * * * * * * * * write the c++ program and show me brifily?
i cant write
You can write a program without specifying its prototype when the function returns an integer.If the prototype is not mentioned the compiler thinks that the return type of the function used is integer.When making program which return integer you can ignore writing the protoype.
Sure, you can write a function in C to convert a string to Pig Latin without using pointers by passing the string as a parameter and manipulating it directly within the function. You can split the string into words, check if a word starts with a vowel or consonant, and then apply the appropriate transformation following the rules of Pig Latin. Remember to allocate enough memory for the modified string to prevent buffer overflow.
write the javascript code to display the reverse no. of given no. (e.g. 247 reverse of 742)
question clarity
This is not a question.
not possible dude