Search:

Type: Posts; User: Player777

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    190

    calculator program

    I wrote my code for calculator


    #include<stdio.h>

    int main ()
    {
    int op1;
    int op2;
    int result;
  2. Replies
    1
    Views
    135

    increment operator

    What's the main difference between two operators in the codes


    #include<stdio.h>

    int main ()
    {
    int A = 1;
    A++;
  3. Replies
    6
    Views
    166

    sorry now I understood what I was doing wrong

    sorry now I understood what I was doing wrong
  4. Replies
    6
    Views
    166

    I am confuse because there are so many way I do...

    I am confuse because there are so many way I do not understand how you counted row.


    #include<stdio.h> int main()
    {


    int array [2][3][4] =

    {
  5. Replies
    6
    Views
    166

    so int array [2][3][4] -> 2*3*4 = 24 elements...

    so int array [2][3][4] -> 2*3*4 = 24 elements


    { {1, 2, 3}, { 4, 5, 6} }, // 6 elements { {11, 12, 13}, {14, 15, 16}, {17, 18, 19}},// 9 elements
    { {10, 20, 30, 40}, {50,...
  6. Replies
    6
    Views
    166

    excess elements in array initializer

    Can anyone tell what warning the compiler is giving and how to overcome it?


    warning: excess elements in array initializer
    { {10, 20, 30, 40}, {50, 60, 70, 80}, {90, 100, 110, 120}},
    ^
    note:...
  7. Replies
    4
    Views
    194

    If the string is constant, so const is not...

    If the string is constant, so const is not written in the code anywhere. How do you know the string is constant
  8. Replies
    4
    Views
    194

    Can pointer directly store data

    I do not understand how the codes below work



    #include<stdio.h>

    int main ()
    {
    char * p = { "Hello"};
  9. Replies
    5
    Views
    252

    I am not too good in c language but I am working...

    I am not too good in c language but I am working on it by writing my own program.
    I develop logic on the page before writing the program.


    There is one logic error in code but I think program...
  10. Replies
    5
    Views
    252

    largest number in array

    I do not understand why my program is not finding largest number in array

    I am not getting any output when I run the code


    #include<stdio.h>
    int main (void)
    {
    int i, largest, size,...
  11. Replies
    6
    Views
    252

    How to store string

    If the user enters a string, I want to store it, like if I want to store someone's name, how can I do that?

    I tried to write a program but I am having some warnings. What might be the correct way...
  12. Replies
    9
    Views
    231

    Structure is a group of different data types and...

    Structure is a group of different data types and each element in a C structure is called member

    type int store integer value x = 12
    type char store charactr value y = 'K'
    type float store...
  13. Replies
    9
    Views
    231

    k&r c programming struct X{ int a; ...

    k&r c programming


    struct X{
    int a;
    int b;
    }


    int main ()
  14. Replies
    9
    Views
    231

    point type integer int *a point type charactr...

    point type integer int *a
    point type charactr char *b
    pointer type float float *c

    What is pointer type struct

    struct X * v;

    Does the pointer point to the structure object v
  15. Replies
    9
    Views
    231

    I did not understand the meaning of your...

    I did not understand the meaning of your definition. It would be better to prove your definition by example
  16. Replies
    9
    Views
    231

    What is type struct

    What is type struct ?

    Type variable // we change the type




    type integer int x // x store integer value x = 12

    type charactr char y // y store charactr value y = 'K'
  17. Thread: 3-D arrays

    by Player777
    Replies
    5
    Views
    158

    look at new example, program to store...

    look at new example, program to store temperature of three cities of a week

    given data

    City 1, Day 1 = 33
    City 1, Day 2 = 34
    City 1, Day 3 = 35
    City 1, Day 4 = 33
    City 1, Day 5 = 32...
  18. Replies
    10
    Views
    235

    gcc --version gcc (MinGW.org GCC-6.3.0-1) 6.3.0...

    gcc --version
    gcc (MinGW.org GCC-6.3.0-1) 6.3.0
    Copyright (C) 2016 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for...
  19. Replies
    10
    Views
    235

    command gcc -o test test.c test

    command gcc -o test test.c
    test
  20. Replies
    10
    Views
    235

    Hodor Try printf(" % d ", content[i]); It's...

    Hodor

    Try printf(" % d ", content[i]);

    It's work


    I use MinGW is a port of the free GCC compiler to Windows My compiler is not giving any warning.

    There are so many compiler available...
  21. Thread: 3-D arrays

    by Player777
    Replies
    5
    Views
    158

    I tried to make an example As much as i can ...

    I tried to make an example As much as i can understand If I have an integer values like the marks of 5 students for first stranded, marks of 8 students for second stranded, marks of 10 students...
  22. Replies
    10
    Views
    235

    The program is not working as it should supposed...

    The program is not working as it should supposed to do


    #include<stdio.h>
    void Fun (int content[], int n );

    int main ()
    {
    int n = 6;
    int array[6] = {6, 5, 4, 3, 2, 1};
  23. Thread: 3-D arrays

    by Player777
    Replies
    5
    Views
    158

    3-D arrays

    overall goal is to understand the use multi dimensional array

    For example, suppose


    5 stdudents is stuying in fisrt standard Whose marks are as follows 40, 65, 98, 47, 65.


    8...
  24. Replies
    10
    Views
    235

    passing array to function

    I want to understand how does array get pass by its value

    If I know the length of the array, can I pass its content to the function as I do in my program



    #include<stdio.h>

    void Fun (int...
  25. Replies
    18
    Views
    343

    I have mingw and windows gcc -o example ...

    I have mingw and windows

    gcc -o example file1.c file2.c
    example
    2


    int Global_Variable;

    // Function header (definition)
Results 1 to 25 of 54
Page 1 of 3 1 2 3