I want to display a "SUCCESSFUL" pop-up message after executing my program in C in Linux.
It should run on both KDE and GNOME. How can I do this?
You are looking for desktop notifications. I believe both KDE and GNOME support them. Here is a (Gtk+-based) library you can use for your program's end.