简体   繁体   中英

Data argument not used by format string in c

hi i'm trying to make a compiler for a programming language

  1. how can i make a compiler as a command for mac terminal (Not the problem just a question)
  2. how can i fix the problem whit my code
#include <stdio.h>

 int main(int argc, char **argv) {
    // insert code here...
    char path[100];

    printf("Path to program.\n\r");
    scanf("%s", path);
    printf("Path to program is ", path, " Y of N. \n\r"); /*<--- problem Data argument not used by format string*/
}

hi i'm trying to make a compiler for a programming language

  1. how can i make a compiler as a command for mac terminal (Not the problem just a question)
  2. how can i fix the problem whit my code
#include <stdio.h>

 int main(int argc, char **argv) {
    // insert code here...
    char path[100];

    printf("Path to program.\n\r");
    scanf("%s", path);
    printf("Path to program is ", path, " Y of N. \n\r"); /*<--- problem Data argument not used by format string*/
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM