Embedded programmer C Language Test typical questions
This is an article by Daniel. It is estimated that the author is a project manager for embedded software development, who organizes some common written examinations, interview questions, and some
The term endian is written by Jonathan Swift. This Book classifies all people into two categories based on the way they open the eggs. From the beginning, the people who open the eggs are classified as big endian, from the beginning, the person who
Time limit per test
2 secondsMemory limit per test
256 megabytesInput
Standard InputOutput
Standard output
Little boy Valera studies an algorithm of sorting an integer array. After studying the theory, he went on to the practical tasks. As a result,
Cppreference.com->C/C ++ keywords-> Details
C/C ++ keywords
ASM
Syntax:
asm( "instruction" );
ASM allows you to directly insert assembly language commands in your code. Different compilers allow different forms for this
In practice, the value of some variables is limited to a limited range. For example, there are only seven days in a week, 12 months in a year, and six courses per week in a class. It is obviously inappropriate to describe these values as integer,
Part 2: Basic Information Representation and basic information processing main content: L basic data representation, including basic data types, constants and variables; L basic data processing, mainly introduces various basic operators; l process
# Include # Include Using namespace STD;Int main (){Time_t begin, end;Begin = clock ();// Add your code hereEnd = clock ();Cout }
UNIX time-related and standard libraryIn 1. The timegm function only converts the struct TM structure to the time_t
PS-
-Option A lists all processes, including those running by other users on other terminals.
Program But the output with option-a Does not include shell.
PS-l
Administrator @ Ubuntu :~ $ PS-lF s uid PID ppid C pri Ni addr sz wchan tty time cmd0
1. What are the differences and connections between processes and threads?Each process requires at least one thread.A process consists of two parts: the process kernel object and the address space. A thread is also composed of two parts: the thread
Conditional breakpoint: breakpoint command + "J (excecute if-else) and GC (go from conditional breakpoint )"
Example: BP address "J (condition) 'optionalcommands'; 'gc '"
Here, we will briefly explain how to write the following conditional
Source: Network
0x10 basic issues that embedded programmers should know
1. Use the preprocessing command # define to declare a constant to indicate the number of seconds in a year (ignore the leap year problem)# Define seconds_per_year (60*60*24*365)
1. Loop Structure (while, do... While,)
1.1. What is a loop structure
In daily life, there will be a lot of things that need to be done repeatedly, such as four seasons of every year, 7 days of every week, 3 meals a day, and 50 copies of each
C Language Testing: 0x10 basic issues that embedded programmers should know
11:18:53 from: http://www.chinaunix.net
C language testing is an essential and effective way to recruit embedded system
Preprocessor)
1. Use the preprocessing command # define to declare a constant to indicate the number of seconds in a year (ignore the leap year problem)
# Define seconds_per_year (60*60*24*365) UL
Here I want to see several things:
1). # basic
Document directory
1. Introduction
2. What is socket?
3. Three types of socket
4. Use a socket to send data
5. Data Structure of socket in Linux
6. Network byte sequence and its conversion functions
7. IP address conversion
8. byte
Printk Function
We used the printk function in earlier chapters with the simplifying assumption that it works like printf. Now it's time to introduce some of the differences.
In the previous chapter, we simply use printk as a printf function. It's
C language testing is an essential and effective way to recruit embedded system programmers. Over the years, I have both participated in and organized many such tests. During this process, I realized that these tests could provide a lot of useful
Integer: the representation of integer data: decimal, octal, and hexadecimal integer data has the following reserved words: int, short, long, signed, unsigned integer data including signed) unsigned integer values of two types of integer data types:
Object-Oriented Programming, my thoughts
Preface:
This document aims to help my colleagues better understand object-oriented programming. This allows later users to take less detours, but many vulnerabilities and errors are inevitable. We also ask
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.