Search:

Type: Posts; User: Ada Lovelace

Search: Search took 0.17 seconds.

  1. Replies
    132
    Views
    73,439

    Sticky: Re: 500 Ways to Print 1 to 10

    Here is why I am glad to not be working with pointers anymore:


    #include <stdio.h>

    int main()
    {
    int *ptr = NULL;
    int temp = 1;
    ptr = &temp;
  2. Replies
    132
    Views
    73,439

    Sticky: Re: 500 Ways to Print 1 to 10

    Not sure if this method have been attempted:


    package mycounting.pkg;
    public class MainClass
    {
    public static void main(String[] args)
    {
    Counter count = new Counter(1);
    ...
Results 1 to 2 of 2