Profile one of your recently written C/C++ programs. Write down all the commands that you used to accomplish this task.
What will be an ideal response?
```
/**
*The program that is being profiled in question no 5*
**/
#define SIZE 512
int i;
int j=SIZE;
static char *greetings="Hello, world!
";
void printout(char *a)
{
printf(a);
}
void foobar();
int main(void)
{
foobar();
foobar();
foobar();
foobar();
foobar();
foobar();
foobar();
foobar();
foobar();
foobar();
foobar();
foobar();
foobar();
foobar();
foobar();
foobar();
foobar();
printout("
helloooooooooo
");
printout("
helloooooooooo
");
printout("
helloooooooooo
");
printout("
helloooooooooo
");
printout("
helloooooooooo
");
printout("
helloooooooooo
");
printout("
helloooooooooo
");
printout("
helloooooooooo
");
printout("
helloooooooooo
");
printout("
helloooooooooo
");
printout("
helloooooooooo
");
printout("
helloooooooooo
");
exit(0);
}
void foobar(void)
{
static int i;
sta
You might also like to view...
Which of the following code segments does not increment val by 3:
a. val += 3; b. val = val + 1; val = val + 1; val = val + 1; c. c = 3; val = val + (c == 3 ? 2 : 3); d. All of the above increment val by 3.
____ are objects that can be manipulated with primitive methods, like move, turn, and roll, as well as with user-created methods.
A. Breakpoints B. Billboards C. Dialog balloons D. Thought bubbles