inline function is there in c language?
Answers were Sorted based on User's Feedback
Answer / kathir
No, Inline functions are introduced in C++ to avoid the
problems while using macros.
using inline functions in C++ is as equivalent as defining
a function macro.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / srinivasroyal
no. there is no such type of function available in C-language.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rakshitha
No inline functions r not ther in c. its only in c++, in
c++ it is used to replace function call with the body of
the function..
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / subash
no inline function there in c language only c++ language
Is This Answer Correct ? | 0 Yes | 0 No |
What will be your course of action for a push operation?
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
2.Given the short c program that follows a. make a list of the memory variables in this program b.which lines of code contain operations that change the contents of memory? what are those operations? Void main( void) { Double base; Double height; Double area; Printf(“enter base and height of triangle :”); Scanf(“%lg”, &base); Scanf(“%lg”, &height); Area=base*height/2.0; Printf(“the area of the triangle is %g \n”,area); }
What are different types of operators?
Write a program that his output * *** *****
What is a stream?
What is the explanation for cyclic nature of data types in c?
What are pointers? What are stacks and queues?
extern static int i func() { i =10; i++; printf("%d \n",i); } main() { i =20; printf("%d \n",i); func(); printf("%d \n",i); }
Explain why can’t constant values be used to define an array’s initial size?
How to swap 3 numbers without using 4th variable?
what is diff between localstatic and globalstatis variable possible 2 use in another file...?