Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

can i say if (d =='\t')? to check if the space is a tab ? or how can i express that in c?

2 Answers

Relevance
  • 9 years ago
    Favorite Answer

    Yes that'll work fine if d is an int or a char:

    char d;

    d = getchar();

    if(d == '\t')

    printf("It's a tab");

  • 9 years ago

    Yes you can.

Still have questions? Get your answers by asking now.