为什么我们称之为运行时和编译时间是否有任何我可以得到的例子 [英] Why Do We Call As Run Time And Compile Time Is There Any Example I Can Get

查看:65
本文介绍了为什么我们称之为运行时和编译时间是否有任何我可以得到的例子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是chandrasekar,如果有人为我排序,那将会很棒。



问候,

ChandrasekarRadhakrishnan

解决方案

粗略地说'编译时'是指编译器在你的程序上运行(试图编译它),而'run time'就是你的(已编译)程序实际上正在运行。





例如语法错误是'编译时'错误,因为是由编译器检测到(并阻止编译),例如,数组中索引超出范围是运行时错误,因为它在您的(已编译)程序运行时发生

Hi,
I'm chandrasekar it will be great if anyone sort this for me.

Regards,
ChandrasekarRadhakrishnan

解决方案

Roughly speaking 'compile time' is when the compilers runs on your program (trying to compiling it) while 'run time' is when your (compiled) program is actually running.


For instance a syntax error is 'compile time' error, because is is detected by the compiler (and prevents compilation) while, for instance, an index out of range in a array is a 'runtime error' because it happens while your (compiled) program is running.


这篇关于为什么我们称之为运行时和编译时间是否有任何我可以得到的例子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆