dimanche 11 novembre 2018

Control Flow Graph of Function Call

What is the Control Flow Graph (CFG) of the code below? Before we go through func1, a = func1(b); must be appeared? What is the outgoing of return false; statement?

Boolean func1(b)
{
    if (b < 1)
     return true;
    else
     return false;
}

main()
{
    var b = 2;
    a = func1(b);

}

Aucun commentaire:

Enregistrer un commentaire