代码搜索:ptr
找到约 10,000 项符合「ptr」的源代码
代码结果 10,000
www.eeworm.com/read/366702/2883726
c wstrict-aliasing-bogus-const-ptr-nonconst-ptr.c
/* { dg-do compile } */
/* { dg-options "-O2 -Wstrict-aliasing -fstrict-aliasing" } */
const int* foo (void)
{
int *i;
const int** cpi = (const int**) &i; /* { dg-bogus "const vs. non-const" } */
www.eeworm.com/read/290380/8486303
c ptr_demo.c
#include
void main(void)
{
int counter = 10;
int *iptr; // Declare pointer value
iptr = &counter; // Assign the address
printf("Addres in iptr %x Value at
www.eeworm.com/read/290380/8486323
c ptr_upr.c
#include
#include
char *string_uppercase(char *string)
{
char *starting_address;
starting_address = string;
while (*string)
toupper(*string++);
re
www.eeworm.com/read/290380/8486381
c str_ptr.c
#include
void show_string(char *string)
{
while (*string)
putchar(*string++);
}
void main(void)
{
show_string("Jamsa's 1001 C/C++ Tips");
}
www.eeworm.com/read/290380/8486672
c ptr_out.c
#include
void main ()
{
int value;
printf("The address of the variable value is %p\n",
&value);
}
www.eeworm.com/read/290380/8486880
c env_ptr.c
#include
void main (int argc, char **argv, char **env)
{
while (*env)
printf("%s\n", *env++);
}
www.eeworm.com/read/290380/8486883
c argv_ptr.c
#include
void main (int argc, char **argv)
{
while (*argv)
printf ("%s\n", *argv++);
}
www.eeworm.com/read/290325/8489810
h smart_ptr.h
// smart_ptr.h -- by Thatcher Ulrich 2003
// This source code has been donated to the Public Domain. Do
// whatever you want with it.
// Smart (ref-counting) pointer classes. Uses
www.eeworm.com/read/389585/8513311
bmp varbmp_ptr.bmp
www.eeworm.com/read/289184/8569310
c ptr_demo.c
#include
void main(void)
{
int counter = 10;
int *iptr; // Declare pointer value
iptr = &counter; // Assign the address
printf("Addres in iptr %x Value at