Why we are use # in begning of programme of c++.

Answer Posted / durga.g

# is used to include the headerfiles or predefined files
into our programme.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can main method override?

584


How do you achieve polymorphism?

615


Can private class be inherited?

618


Explain virtual inheritance?

682


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1663






#include #include #include #include void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

2167


when to use 'mutable' keyword and when to use 'const cast' in c++

1643


Can we create object of abstract class?

577


What does I oop mean?

616


What is polymorphism explain?

691


What is the oops and benefits of oops programming?

553


Can bst contain duplicates?

668


What are the 3 pillars of oop?

614


Which type does string inherit from?

616


Can abstract class have normal methods?

613