What are the similarities between c and c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?

9 Answers   Hughes, Tech Mahindra,


Write a program to print factorial of given number without using recursion?

0 Answers  


Explain why C language is procedural?

0 Answers   GE,


Explain how does flowchart help in writing a program?

0 Answers  


Write a C program where input is: "My name is xyz". output is: "xyz is name My".

1 Answers   TCS,






Diff between for loop and while loop?

2 Answers   TCS,


can we declare a function inside the structure? ex: struct book { int pages; float price; int library(int,float); }b; is the above declaration correct? as it has function declaration?

2 Answers  


find a number whether it is even or odd without using any control structures and relational operators?

22 Answers   Microsoft, Shashank Private Limited,


What is difference between main and void main?

0 Answers  


What is malloc and calloc?

0 Answers  


Explain void pointer?

0 Answers  


What is void c?

0 Answers  


Categories