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 |
two variables are added answer is stored on not for third variable how it is possible?
DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?
char p="data"; printf(p);
What does nil mean in c?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
Is an array parameter is always "by reference" ?
Program to display given 3 integers in ascending order
Explain what does the function toupper() do?
Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV
A set of N billiard balls are set on a one-dimensional table. The table is 1 meter long, set north-south with two pockets at either side. Each ball has zero width and there is no friction so it is moving with a fixed velocity of either northward or southward and bounces back in a perfect elastic collision from other balls it encounter on its way (or drop into one of the pockets). Your job is to keep track of the balls movements. Task Please write a program that gets the initial place, speed and direction of all the balls and gives the position of a specific ball after t seconds. Input The first line contains the number of scenarios. Each one of the other lines in the input contains a scenario: The first number, N, is the number of balls; followed by N pairs of numbers: the distance in centimeters from the south end of the table and the speed (positive speed meaning it moves northward); the last two numbers are the number i of the target ball you should track and the time T in seconds. Output The output is a single number for each line which is the place (distance in centimeters from the south end of the table) of the tracked ball after T seconds. Note: There is no new line character at the end of the result. Sample Input 5 1 50 1 1 1000 1 50 1 1 6 1 60 -2 1 6 2 10 1 95 -1 2 30 2 10 1 95 -1 2 60 Sample Output 100 56 48 65 70
#include<stdio.h> int SumElement(int *,int); void main(void) { int x[10]; int i=10; for(;i;) { i--; *(x+i)=i; } printf("%d",SumElement(x,10)); } int SumElement(int array[],int size) { int i=0; float sum=0; for(;i<size;i++) sum+=array[i]; return sum; } output?
what is difference between ++(*p) and (*p)++
17 Answers Accenture, HCL, IBM,