EmbLogic's Blog

plz tell me what is the function of system(“pause”) in this program.

#include
int main()
{
int value = 77,num =99;
int *pv=&value,*pn = #
int **ppi;
ppi = &pv;
printf(“**ppi=%d \n “,**ppi);
ppi = &pn;
printf(“**ppi= %d \n”,**ppi);
system(“pause”);
}

One Response to plz tell me what is the function of system(“pause”) in this program.

  1. system(“pause”); is a system call similar to
    cin.get() in c++
    it actully avoids the further execution of the program and waits for a keypress.

Leave a Reply to Sanjeev Kumar Cancel 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>