What is guard code ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is guard code ?

it was a question in my exam today

21st Mar 2017, 6:11 AM
narmada
narmada - avatar
1 Answer
+ 1
Guard code is a check of integrity preconditions used to avoid errors during execution. It basically a condition statement that decide whether the code will execute or not.
22nd Mar 2017, 8:09 AM
Aditya Kshitiz
Aditya Kshitiz - avatar