Is this possible only in C++ and not in C. If its possible in C could you write some examples for both program languages.

Thanks,
Best regards,
BoSChoW.