:)

Simple array errors in X-code

#import <Foundation/Foundation.h>

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

{

@autoreleasepool {

int word[5];

int i;

for (i=0; i<4;i++) {

scanf(“%d”, word[i]);

}

}

return 0;

}

 

===========================

It is showing the following problem

===========================

 

GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov  3 21:59:02 UTC 2011)

Copyright 2004 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type “show copying” to see the conditions.

There is absolutely no warranty for GDB.  Type “show warranty” for details.

This GDB was configured as “x86_64-apple-darwin”.tty /dev/ttys001

[Switching to process 274 thread 0x0]

 

============================

Any help will be highly appreciated.

 

THANKING YOU

Rupak Nepali

Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>