Why is it hard to write secure code with C?

What will be an ideal response?


Designed for performance and low-level programming, C and its close relative C++ include fundamental language design decisions that make it difficult to write secure code. C permits buffer overflows, does not contain strong type checking, and requires programmers to do their own memory management. C is a fine choice to write system programs such as file system run times and operating system kernels. However, many applications have been written in C where security problems might be present.

Computer Science & Information Technology

You might also like to view...

What is the correct statement when declaring and assigning the value of 100 to an Integer variable called numPeople?

A. Set numPeople = 100 B. Dim numPeople = Math.Int(100) C. numPeople = 100 D. Dim numPeople As Integer = 100

Computer Science & Information Technology

________ is software stored on a flash ROM chip in a piece of hardware

A) Malware B) PnP C) Firmware D) Spyware

Computer Science & Information Technology

Which of the following is NOT true about compressing media in a presentation?

A) PowerPoint 2013 has the ability to compress the media in a presentation to various size levels. B) Multimedia objects such as animations, transitions, audio, and video can result in presentations being very large in size. C) Large presentations are often difficult to share with others or store when storage space is limited. D) Presentation Quality should be used when possible to maintain the overall quality while still saving some storage space.

Computer Science & Information Technology

Use of the ________ comparison operator results in true when the field's value does not equal the specified value

A) >= B) <> C) <= D) <

Computer Science & Information Technology