1,626 views
1 1 vote
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 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.
Position:
Show:

Related questions

7 7 votes
2 2 answers
376
376 views
GO Classes asked Jun 29
376 views
What is the output of the following code?#include <stdio.h struct Item { int code; int price; }; void update(struct Item *p) { p->price = p->price + 20; (*p).code = (*p)....
9 9 votes
3 3 answers
407
407 views
GO Classes asked Jun 25
407 views
What is the output of the following code?#include <stdio.h void update(int q, int *r) { q = q + 5; *q = r; q = q + 2; } int main() { int x = 3, y = 8; int *p = &x; u...
9 9 votes
2 2 answers
353
353 views
GO Classes asked Jun 24
353 views
What is the output of the following code?#include <stdio.h void fun(int *p) { *p = *p + 1; p++; *p = *p + 2; } int main() { int arr[] = {5, 10, 15}; fun(arr + 1); printf(...
2 2 votes
1 1 answer
1.1k
1.1k views
Venkat Sai asked Jan 17, 2018
1,131 views
#include <stdio.h>int yellow();int main(){ int hello(); yellow(); printf("%d",hello()); return 0;}int yellow(){ hello(); }int hello(){printf("hello hello...