Search:

Type: Posts; User: kdushyant297

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Problem with while loop (not looping back despite test being true)

    //Programming in C


    /*
    * checking armstrong for n digits
    */
    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    #include <stdbool.h>
  2. What's the reason of the number 1045***

    What's the reason of the number 1045***
  3. Couldn't understand output of union initialized members!!

    //Structures and unions


    #include <stdio.h>
    #include <stdlib.h>


    int main(int argc, char const *argv[])
    {
    union sample
  4. CHARACTER FREQUENCY WITH ARRAYS [EOF not working]

    #include <stdio.h>
    #include <ctype.h>
    #include <assert.h>


    //Frequency table of input
    int main(int argc, char*argv[])
    {
    int counts[26] = {0};
    int cypherChar = getchar();
  5. Replies
    3
    Views
    390

    Sleep function misbehaving!!

    Here is my code:




    #include <stdio.h>
    #include <stdlib.h>
    #include <conio.h>
  6. Replies
    3
    Views
    567

    For loop behaving unexpected!!

    Here is my code to take 6 integers into an array (But taking 24 entries don't know how??):



    #include <stdio.h>
    #include <stdlib.h>


    void main()
    {
  7. Concept cleared. Thanks to all of u

    Concept cleared.

    Thanks to all of u
  8. Can we store integer in a char variable?? (With reference to my code)

    Here is my code:


    //Programming in C


    /*
    *
    * @author Dushyant Kaushik
    *
  9. Starting with strucutres and getting error!! Please get me help

    Here is my header file code (structure.h)




    struct user {


    int userId;
    char firstname[20];
  10. Replies
    1
    Views
    672

    HOw can I shorten my code?

    //Programming in C


    #include <stdio.h>
    #include <conio.h>
    #include <stdlib.h>
    int temp;
    float amount = 0,tax = 0.12;
    float resolver_Func(int temp)
    {
  11. In code::blocks when i run it It runs fine...

    In code::blocks when i run it

    It runs fine with output having black text in white background

    But in turbo c

    It shows invalid color command and then shows normal text.
  12. Invalid command Color (Doesn't work in turbo C but works fine in Code::Blocks)

    Here is my code:




    #include <stdio.h>
    #include <conio.h>
    #include <stdlib.h>
    main()
    {
  13. Thanks jimblumberg, problem solved.

    Thanks jimblumberg, problem solved.
  14. Code Blocks showing error in code! Don't know what's it.

    Here is my code:



    //Program showing factor of a number


    #include <stdio.h>
    #include <conio.h>
    #include <stdlib.h>
  15. Friends please review the code (help with the erro)

    Here is my code



    /* A simple C program that takes
    * two values and invoke a function with
    * pass by value */


    # include <stdio.h>
  16. Yeah, Thaks man. It all makes sense now.

    Yeah, Thaks man.
    It all makes sense now.
  17. Thanks everyone for your assists. I installed...

    Thanks everyone for your assists. I installed codeblocks, and looks pretty well to me.
  18. And please help me out choosing a better IDE.

    And please help me out choosing a better IDE.
  19. Thanks man. I am so silly that i didn't noticed...

    Thanks man. I am so silly that i didn't noticed that.
  20. Hello experts! Me having some trouble with integer variable (17 printed as -28786)

    Here is my code :




    //Program in C
    /* Revising methods strch()
    * and strcmp() with stricmp(). */
  21. Then which IDE you suggest. Currently I am using...

    Then which IDE you suggest. Currently I am using Turbo C++ 3.0 Windows 7. And thanks for your help.
  22. Thanks everyone! For helping me out. Actually for...

    Thanks everyone! For helping me out. Actually for me replacing perror() with printf() did the job & also changing main() function's return value from 0 to 1 does the same.
  23. I want to know is it usually displayed(Error0)or it is my code which may be defected!

    Here is my code




    //Program in C
    /* Using strchr() & strcmp()
    * function(s) to do some conditional(s) */
  24. It's still not working showing only the else part...

    It's still not working showing only the else part irregardless whatever the input is:
    Here is my code

    15192

    Please take a look, and give me the solution. It would really be appreciated.
  25. Yeah sure i did that but when i do ...

    Yeah sure i did that but when i do



    strcmp(c, match)


    Inside if test expression i get an compilation error saying the function strcmp should have a prototype.
Results 1 to 25 of 28
Page 1 of 2 1 2