746 views
1 votes
1 votes
All functions have file scope. Thus, you cannot define a function within a function. This is why C is not technically a block-structured language.Explain pls ?

1 Answer

0 votes
0 votes
In C language we can create functions and divide the logic and data into different compartments (functions), C is called a structured language.

A block structured language is the one which allows functions or procedures to be created inside other functions or procedures. C does not fall in the category of a block structured language because in the C language we cannot create a function inside another function.

Related questions

0 votes
0 votes
0 answers
2
Ajitesh Mandal asked Apr 3, 2017
381 views
What is the output of the program?? I think the output should be 2 2 1 . But on running the program gives the output 2 3 3 . Pls explain why that output 2 3 3 in details ...
2 votes
2 votes
3 answers
3
Laahithyaa VS asked Sep 9, 2023
895 views
. What will be the value returned by the following function, when it is called with 11?recur (int num){if ((num / 2)! = 0 ) return (recur (num/2) *10+num%2);else return 1...
0 votes
0 votes
0 answers
4