Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- printf("wprowadz liczby: ");
- for(int i=0; i<array_size; i++)
- {
- if((scanf("%f",(ptr_array_user_write+i))!=1) || (array_size<=0) || ((ptr_array_user_write+i)==NULL) )
- {
- printf("Incorrect input");
- return -1;
- }
- else if(sizeof *(ptr_array_user_write+i)!=sizeof(float))
- {
- printf("Incorrect input data");
- return -2;
- }
- else if(*(ptr_array_user_write+i)==stop_value)
- {
- return i;
- }
- }
- return array_size;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement