Search:

Type: Posts; User: max1989

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,632

    *(ptr+i) worked. THANKS

    *(ptr+i) worked. THANKS
  2. Replies
    5
    Views
    1,632

    A very stupid question on pointers

    i want to know why dont we prefix the pointer with * when using it on dynamic array.



    #include "stdafx.h"
    #include <stdio.h>
    #include <stdlib.h>
    void main()
    {
  3. thanks

    fgets worked thanks
  4. How to find out the string size which includes more than a word

    #include <stdio.h>
    #include <string.h>
    void main()
    {
    int i=0;
    char str[40];
    printf("Program to know the string size\n");
    printf("Enter a string with more than 2 words: ");
    scanf("%s",...
  5. Replies
    4
    Views
    2,096

    Thats not possible in C. c++ would work. or...

    Thats not possible in C. c++ would work. or dynamic arrays would work
  6. Thread: A simple query

    by max1989
    Replies
    7
    Views
    1,327

    is there any chance of reducing number of while...

    is there any chance of reducing number of while loops
  7. Thread: A simple query

    by max1989
    Replies
    7
    Views
    1,327

    I am sorry for posing in wrong board, i am just...

    I am sorry for posing in wrong board, i am just looking for correct algorithm
  8. Thread: A simple query

    by max1989
    Replies
    7
    Views
    1,327

    #include void main() { int i,j,k,l;...

    #include <stdio.h>
    void main()
    {
    int i,j,k,l;
    i=4;
    l=1;

    while(i>=0)
    {
    j=i;
  9. Thread: A simple query

    by max1989
    Replies
    7
    Views
    1,327

    A simple query

    I found this puzzle in some book and i dont know the solution. please tell me how to write this program.

    The following pyramid should be printed using WHILE LOOP.


    ...
Results 1 to 9 of 9