Search:

Type: Posts; User: hardik

Search: Search took 0.01 seconds.

  1. #include #include int main()...

    #include<stdio.h>
    #include<string.h>
    int main()
    {
    char *foo = "Charlotte*NC*is*a*really*cool*place*to*work*and*play";
    char buf[100];
    int l = strlen(foo);
    int i;

    for(i=0;i<l;i++)
  2. i tried running it, unsuccessful attempt tho

    i tried running it, unsuccessful attempt tho
  3. Okay this is as close as you'll get... ...

    Okay this is as close as you'll get...



    #include <stdio.h>
    #include <string.h>

    int main(void)
    {
    char foo[] = " Charlotte *NC*is*a*really*cool*place*to*work*and*play";
  4. #include #include int...

    #include <stdio.h>
    #include <string.h>

    int main (int argc, char* argv[])
    {

    char *foo = "Charlotte *NC*is*a*really*cool*place*to*work*and*play";
    char *bar = strdup (foo);
    ...
  5. OP is back hehe, well my problem was solved, so...

    OP is back hehe, well my problem was solved, so BIG THANKS TO ALL YOU GUYS OUT THERE HELPING OTHERS SO MUCH, but also just for sake of learning i am still keeping up with all your posting its...
  6. i have a question for maxotator and zacs7,...

    i have a question for maxotator and zacs7, maxotator, in your code wont we need secondary buffer? same for zacs7 if i remove foo and bar wont i need a secondary buffer? i tried and got an error, also...
  7. #include #include int...

    #include <stdio.h>
    #include <string.h>

    int main (int argc, char* argv[])
    {
    char *foo = "Charlotte *NC*is*a*really*cool*place*to*work*and*play";
    char *bar = strdup (foo);
    char baz...
  8. sorry guys, i am complete newbie so taking very...

    sorry guys, i am complete newbie so taking very long to understand what exactly you guys saying, well i didnt mean to ignore, trust me i read each reply throughout and tried to understand it, i...
  9. insert #include int main (void)...

    insert

    #include <string.h>

    int main (void)
    {
    char *foo = " Charlotte *NC*is*a*really*cool*place*to*work*and*play";
    char delims[]="*";
    char *result = NULL;
    result =...
  10. how do i put code in reply?

    i was trying to post my code so i can get further help, i couldnt figure how to do that, help plz?
  11. well, its not a teacher/professor/manager. lolz i...

    well, its not a teacher/professor/manager. lolz i see u still firmly believe its for school assignment, i thought of it very first but then i saw its asking smallest amount of code possible, dont you...
  12. yes, i did very basic level programming

    and i did learn arrays and strings, but nothing on this advance level, i would love if you can point me somewhere where i can learn it like very quick? i know you are not giving out just whole...
  13. well its not a homework problem,

    schools r i guess not started yet summer is still going on, and i do apologize that i got frustrated about it and posted in all C forums, i need it for my work, i would apreciate if someone gets back...
  14. replace the "*" in the above string with " ", a single space character using ANSI C??

    ok, I am very new to C programming and i have a problem at hand, i wuld really really appreciate any help plz,



    The string is defined as the following:

    char * foo = " Baltimore...
Results 1 to 14 of 17