Q:

Question regarding pragma Ident

Can you please explain what is the meaning of each key in the following declaration 
#pragma ident "%Z% %M% v%I% (c) GEMS %G%"

I am using Clearcase Revision Control System

A:

Pragmas are compiler dependent stuff. This one looks specific to Sun Studio's compiler. From the documentation:

Use ident to place string in the .comment section of the executable.

This would mean the executable will contain a string after suitable transformation of the variables (i.e. %Z% etc).

