代码搜索结果
找到约 231,314 项符合
C 的代码
c
#include
void main(void)
{
int value = 1001;
if (value > 1000)
{
int value = 1;
printf("Inner value is %d\n", value);
}
printf("Outer valu
c
#include
#include
int add_values(int value, ...)
{
va_list argument_ptr;
int result = 0;
if (value != 0)
{
result += value;
va_star
c
#include
#include
double add_values(char *str, ...)
{
va_list marker;
double result = 0.0;
va_start(marker, str); /* mark first additional argument */
c
#include
void beeper(int beep_count)
{
int count;
for (count = 1; count
c
#include
int strlen(char str[])
{
int i = 0;
while (str[i] != NULL)
i++;
return(i);
}
void main(void)
{
printf("Length of ABC is %d\n", strlen("ABC"));
c
#include
int factorial(int value)
{
int result = 1;
int counter;
for (counter = 2; counter
c
#include
int tip_count = 1001; // Global variable
void show_title(void)
{
printf("Jamsa's 1001 C/C++ Tips");
}
c
#include
float average_value(int a, int b, int c)
{
return ((a + b + c) / 3.0);
}
void main(void)
{
printf("The average of 100, 133, and 155 is %f\n",
aver
c
#include
void hello_world(void)
{
printf("Hello, world!\n");
}
void three_hellos(void)
{
int counter;
for (counter = 1; counter
c
#include
void main(void)
{
int a = 1, b = 2, c = 3;
printf("The address of a is %x the value of a is %d\n", &a, a);
printf("The address of b is %x the value of b is %d\n",