How to write a program on student marks using function without parameter?

| | August 7, 2015

How to write a program on student marks using function without parameter:

  #import <Foundation/Foundation.h>

  void studentMarks(){

  }

  int main( int argc const char *argv[]) {

  }

One Response to “How to write a program on student marks using function without parameter?”

  1. use below function :

    int c = 0;
    
    - (void)studentMarks { 
            NSLog(@"%d", c);
     }
    
    int main(int argc, const char *argv[]) {
           int a = 3, b = 2;
           c = a - b;
           [self studentMarks];
    }
    

Leave a Reply