Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
NSMutable Chirag
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//gcc 5.0.4 #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSMutableSet *reparingCars = [NSMutableSet setWithObjects : @"Ferrari" , @"Audi",nil]; NSMutableSet *repairedCars = [NSMutableSet setWithObjects : @"Lamborgini" , @"Toyota",nil]; NSLog(@"Reparing cars : %@",reparingCars); NSLog(@"Repaired cars : %@",repairedCars); [reparingCars removeObject : @"Audi"]; [repairedCars addObject : @"Audi"]; NSLog(@"Reparing cars : %@",reparingCars); NSLog(@"Repaired cars : %@",repairedCars); for(NSString *reparingCar in reparingCars) { NSLog(@"%@", reparingCar); } for(NSString *repairedCar in repairedCars) { NSLog(@"%@", repairedCar); } [pool drain]; return 0; }
gcc
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
Compilation time: 0.33 sec, absolute running time: 0.11 sec, cpu time: 0.06 sec, memory peak: 9 Mb, absolute service time: 0,46 sec
edit mode
|
history
|
discussion