Both Xcode and gcc compile C/C++ code and are very user friendly IDE but the main difference is that Xcode runs on iOS platform and the file it generates after compile is of extension .XCODEPROJ while gcc is for Windows platform and it generates .c extension file on compilation. Both are platform dependent, hence code compiled by one can't be executed on the other.
**************************************************************************************************************************************
In case of any doubt do ask in the comment section
Get Answers For Free
Most questions answered within 1 hours.