some problems about c++ try catch [closed]

Exceptions are brutal break of the normal flow of execution. The error correcting flow is to find a catch that correspond to the object thrown; this may lead to several function calls reverse traversal. This is why it needs care to use them, you have two flow of execution : the normal one, and the … Read more

file validation in linux scripting

If you want to do it in pure bash, use the following script: #!/bin/bash while read line; do line=( ${line//[:]/ } ) for i in “${!line[@]}”; do [ ! -z “${line[$i]##*[!0-9]*}” ] && printf “integer” || printf “string” [ “$i” -ne $(( ${#line[@]} – 1)) ] && printf “:” || echo done done < $1 … Read more

what the output of this code and why?

it is very unlikely that the child pid would be such a low number as 190, although it is possible. It is virtually impossible that the parent pid would be 9 and the child pid would be 10 because the boot of the system would be generating larger pid values than that.