Urgent help in c language

shiny mind

shiny mind

@shiny-mind-cEZUAc Oct 25, 2024
1-what is the best compiler used with eclipse c\c++ i used mingw but not ok (Can't find a source file at "../mingw/crt1.c"
Locate the file or edit the source lookup path to include its location)& used gcc make problem with my hard so what is the best can any one here help me ?

2‎-what does that mean
int main(int argc, char **argv)?


&&& thank you

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Pensu

    Pensu

    @pensu-8tNeGU Apr 15, 2012

    Eclipse is complex IDE, you can try codeblocks for C programming. Much better than eclipse. It comes with integrated minGW compiler.

    shiny mind
    int main(int argc, char **argv)
    This notation is used to take argument from command line. argc stores the number of arguments and argv holds the pointers to variables.
  • lovejeet

    lovejeet

    @lovejeet-etHdkD Apr 17, 2012

    shiny mind
    1-what is the best compiler used with eclipse c\c++ i used mingw but not ok (Can't find a source file at "../mingw/crt1.c"
    Locate the file or edit the source lookup path to include its location)& used gcc make problem with my hard so what is the best can any one here help me ?

    2‎-what does that mean
    int main(int argc, char **argv)?


    &&& thank you
    **argv means that it is a pointer to the pointer to the variable argv.
    in simple terms,
    let x=*y.
    that means x stores the value of pointer to y.
    then p=*x
    so p stores the value of pointer to x.
    therefore, p=**y.
  • ysr shk

    ysr shk

    @ysr-shk-8AjUTB Apr 23, 2012

    2‎-what does that mean
    int main(int argc, char **argv)?
    Here, argc is used to store argument count.That will be helpful to retrive the count of variables passed from command line.
    And **argv ,generally stands for Argument Vector. It uses ** because it's not a single string,it's a string array.This will help you to directly call that string in program. If there is an * it equals to char c[],and ** is equals to char c[][].
  • Vignesh Raghav

    Vignesh Raghav

    @vignesh-raghav-zyV2ib Apr 26, 2012

    The CodeBlock10 does not comes with an integrated compiler . I installed GCC compiler so was working perfect ! I faced this issue . Some one can shed some torchlight on it . I might be wrong (always use to be 👎 )!!!