FAQ

Huge collection of FAQs on C/C++.

Never mix malloc with delete OR new with free

Never mix malloc with delete OR new with free as the outcome will be undefined behavior. It is not a good programming practice.

Let's look at the two undefined behavior due to the mixed usage of malloc with delete OR new with free and learn how to overcome it:

* malloc with delete (attached mallocdel.cpp) - In this case, memory is allocated with malloc and it is freed using delete or delete[].

Job Opening: QA Manager - Software Testing

Dear c4swimmers,

We have some urgent requirements with our Client in India.

About Client: It’s a Fortune 25 top Software MNC with Multiple offices across USA, UK and India.
Current open requirements are for INDIA office.

If you feel you are fitting to any of position below send your updated resume, and contact details to swiftsol.consultant@gmail.com

Position: Manager – Quality Engineering

Job Experience: 8 - 15 yrs in software QE
Job Function: Lead Quality Assurance Team
Location: Northern Part of India

(LINKS) C, C++ Tutorials, FAQs, and Helpful Articles.

(LINKS) C, C++ Tutorials, FAQs, and Helpful Articles.

(FAQ) FREQUENTLY ASKED PROGRAMS IN C, C++

FREQUENTLY ASKED PROGRAMS(FAQs) IN C, C++

 1. Program to convert upper case to lower case or lower case to upper case .

 2. Program to count no. of characters,no. of blanks,no. of words & no. of lines in a multi line string

 3. Program  to correct rudimentary syntax errors.

 4Program to encrypt & decrypt a given string.

 5. Program for Drop Down in C

 6. Program for finding the prime numbers

 7. Program for finding the sum of digits of a five digit number

 8. Program for Prime Number Generation

 9. Program to calculate frequency of vowels in a string

 10.Program to calculate the sum of series

 11.Program to calculate the Typing Speed

 12.Program to copy its input to its output replacing string of one or more blanks by a single blank.

 13.Program to display all vowels in a i/p line of text

 14.Program to find the type of the triangle made by i/p values of its coordinates of its vertices

 15.Program to find wheather a given year is leap year or not.

 16.Program to Multiply Two Matrices

 17.Program to reverse the input string

 18.Program. to find & replace any desired character from the input text

 19.Prg. to sort any no. of numeral i/p in ascending or descending order

 20.Prg. to find the existence & frequency of an i/p substring in a main string

Syndicate content