Functions - Gujarati
- subtitles off
- captions off
- English
- Gujarati
- Questions posted on Forums
- C and Cpp Tutorials - Gujarati
-
Square of Numbers
#include<stdio.h>int main( ) { float number,square; printf("Enter any integer value :"); scanf("%f", &number); square=number*number; printf("square of a given number%.2f is=%.2f", number, square); return 0;}
03-04M 0-10S 8220378170
Answer last updated on: Aug. 20, 2024, 7:30 p.m.
-
Square matrix
#include <stdio.h>void square(){ int x,square; printf("enter the number:"); scanf("%d",&x); square=x*x; printf("square of the number is=%d",square);} int main(){ square();}ByJ.puja ShreeECE department irtt
05-06M 50-60S pujajeeva01@gmail.com
Answer last updated on: Aug. 19, 2024, 2:40 p.m.
-
Square of numbers
#include int main() { float number, square; printf("Please Enter any integer Value:); scanf("%f", &number); square number number; printf("square of a given number %.2f is =%.2f", number, square); return 0; } ByGokulapriya MEce department irtt
04-05M 50-60S gokulapriya1804@gmail.com
Answer last updated on: Aug. 19, 2024, 2:38 p.m.
-
Square of numbers
#include<stdio.h>int main(){ float number, square; printf("Enter any integer Value:"); scanf("%f", &number); square=number* number; printf("square of a given number %.2f is = %.2f", number, square); return 0;}ByRanish. TIT departmentIRTT
03-04M 30-40S Ranish
Answer last updated on: Aug. 19, 2024, 2:37 p.m.
-
Return type
While doing function ising parameters, Pls tell what is the signifine of giving int as return type for main()? Can't we use void main()?
07-08M 10-20S Ayushi1319
Answer last updated on: Jan. 24, 2024, 12:53 p.m.
-
Square of numbers
#include<stdio.h>int main(){ float number, square; printf("Enter any integer Value:"); scanf("%f", &number); square=number* number; printf("square of a given number %.2f is = %.2f", number, square); return 0;}ByPooja.N.LECE departmentIRTTC-and-Cpp Functions 03
03-04M 40-50S Poojanl
Answer last updated on: Jan. 10, 2022, 1:21 p.m.
-
Function return
How function can return a value without writing return statement in its definition?help me out pls
03-04M 40-50S HarryKaur
Answer last updated on: Dec. 6, 2021, 11 a.m.
-
return function is function definition
there is no return function in function definition . how can it return from definition to calling function
05-06M 0-10S 1260swathi@gmail.com
Answer last updated on: June 4, 2020, 5:43 p.m.
-
Why main function main() without data type works on gcc compiler without Error? (Not related to tutorial video)
I have question whenever we use int main() we have to return zero at the end and according to definition default value of main function is integer. Why it is not giving error in compilation in gcc compiler ? as it is mandatory to return zero at the end but it works properly. Even int main() also working without return(0).
09-10M 50-60S zubeen
Answer last updated on: April 21, 2020, 1:40 p.m.
-
Program not compiling/running on TurboC
I was trying to run the "Function with parameters" program displayed at the online video using TurboC(I typed a exactly same program shown in the video). But, it wasn't compiling/running and produced following error,Error#1 - Function should return a value,Error#2 - "c" is assigned a value that is never used.However, it was compiling/running successfully when the same program ran at minGW. Why was it not compiling/running at TurboC? Can i continue use TurboC?
05-06M 0-10S senthilkp
Answer last updated on: April 19, 2020, 8:50 p.m.
-
return statement
for gcc compiler return statement is necessary or not at function definition?
03-04M 10-20S Rajeswarisubramaniyan
Answer last updated on: Feb. 29, 2020, 4:21 p.m.
-
function
return statement from function definition to function call is necessary or not, while we return value from it(definition to call)?
03-04M 30-40S csaranchandran03
Answer last updated on: Feb. 29, 2020, 3:07 p.m.
-
functions in C & CPP
#include<iostream>using namespace std;double add(double a, double b){ double c = a + b;}int main(){ double sum; sum = add(50.4,4.5); cout<<"sum is : "<<sum<<"\\n"; return 0; }Output issum is : nanMay i know why the ans is nan for double data type? Same has already worked for int. Is there any problem with double or float data type.
06-07M 20-30S paresh.rkcet@gmail.com
Answer last updated on: Feb. 29, 2020, 2:39 p.m.
-
switch statement
#include <stdio.h>#include <stdlib.h>int main(){int i;int sq;for(i=1; i<=10; i=i=1){ switch(i%2){case o: printf("%d is even.\\n", even); braek; case 1: printf("m% d is odd.\\n",i); braek; } } scanf("%s"); return 1;}this programm not running please tell me error
00-01M 0-10S Rajee72v
Answer last updated on: March 8, 2017, 1:29 p.m.
-
1First C Program
-
2First Cpp Program
-
3Tokens
-
Functions
-
5Scope Of Variables
-
6If And Else If statement
-
7Nested If And Switch Statement
-
8Increment And Decrement Operators
-
9Arithmetic Operators
-
10Relational Operators
-
11Logical Operators
-
12Loops
-
13Arrays
-
14Working With 2D Arrays
-
15Strings
-
16String Library Functions
-
17Working With Structures
-
18Understanding Pointers
-
19Function Call
-
20File Handling In C
Questions posted on ST Forums:
2194 visits
Outline:
ફંક્શનો ફંક્શન' શું છે ફંક્શન ના જાહેરાત માટે સિન્ટેક્ષ આર્ગ્યુંમેંટો સાથેનાં ફંક્શન ઉદાહરણ: રીટર્ન પ્રકાર ફંક્શન નામ(પેરામીટર) આર્ગ્યુંમેંટ વિનાનાં ફંક્શનો ઉદાહરણ: રીટર્ન પ્રકાર ફંક્શન નામ ફંક્શન બોલાવવું એરર
Width: | 800 | Height: | 664 |
---|---|---|---|
Duration: | 00:09:58 | Size: | 3.5 MB |
Show video info