📜 ⬆️ ⬇️

“Hello, world!” As a tool for evaluating programming skills

Assessing the level of professional skills of a programmer is a very difficult task. Everyone solves it in his own way: someone offers the candidate to take a very voluminous test consisting of thousands of questions, someone offers to solve a very difficult task at once, etc. These approaches have the right to exist, but at least they take a lot of time. It is usually required to quickly assess the level, then it is easiest to offer to solve a very simple task in the programming language of interest. I propose to use as a task the program with which the study of any language begins - “Hello world!”.
On the one hand, this is a very simple task, but on the other hand, as practice shows, even it is at the same time very difficult. Let us consider in detail what the solutions to this problem are written by real people and what they show.
Option 1 is the correct program that runs with an error.
#include <stdio.h>
void main()
    {
    printf( "Hello, world!" );
    }


? , … , , , . ( ) eax ( 32- , ). , . , - , , . (99.99%) , , .
«» :
#include <stdio.h>
int main()
    {
    printf( "Hello, world!" );
    return 0;
    }

0 – .
, , . , – . :
#include <stdio.h>
int main()
    {
    printf( "%s", "Hello, world!" );
    return 0;
    }

, ( ).
, ? ? , , ? ( ), , ? , . , , 9- ( ), , , .
( ) Doxygen.
///@file hello_world.cpp
///@brief  ,     «Hello, world!».
///@author idimm 

#include <stdio.h>

///@brief  ,     . 
int main()
    {
    printf( "%s", "Hello, world!" );
    return 0;
    }

— ( , , ) ( ). , .
. , ? -, , -, (). , , . .
, .

')

Source: https://habr.com/ru/post/303194/


All Articles