CrazyEngineers
  • Vicky One
    Vicky One

    MemberOct 17, 2013

    Function returning string

    Can any one correct the following code and explain...
    The function decode is returning a string and i want that local string to be stored in another string in main which calls that function.
    
     
    #include
    #include
    #include
    void decode(char q[]);
    int main()
    {  //p refers to orignal string and q refers to quoted string
    char a,b,c,d,e,f,g,h,i;
    char p[]="011100011";
    cout<
                        
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Home Channels Search Login Register