It is not working for char, so i want to modify this template function when it is a type of char then it will join(a,b) . Like add('h','i')...
hi karri, try this # include<stdio.h> main() { char *p; char buf[10] ={ 1,2,3,4,5,6,9,8}; p = (buf)[5];...
hi karri, look here the assembly code ; Line 6 mov BYTE PTR _buf$[ebp], 1 mov BYTE PTR _buf$[ebp+1], 2 mov BYTE PTR _buf$[ebp+2], 3...
hi karri, I am not sure , but i think buf refers to first element , (buf + 1) refers to second element and [5] means shift to 5...
I created a template function called add like this template(class T) T add(T a, T b) { return a + b; } now this will work for...
Separate names with a comma.