what are the general concepts of c and c++

Answer Posted / vadivel t

Hi Vignesh,

All the answers u hav posted is correct except declaration
of a variable.

Cos, in C++ we can declare a variable anywhere in a
function.

But in C it is poosible to declare only at the starting of
the function.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of gets and puts?

608


What are conditional operators in C?

630


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

882


What are the main characteristics of c language describe the structure of ac program?

616


What is NULL pointer?

680






What are the types of pointers?

608


what is ur strangth & weekness

1826


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

2340


Explain what are run-time errors?

614


What are the string functions? List some string functions available in c.

611


What is malloc() function?

642


What do you mean by dynamic memory allocation in c? What functions are used?

662


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

1722


Write a program to find factorial of a number using recursive function.

652


What is the difference between NULL and NUL?

733